Skip to content

Commit

Permalink
字典下标访问mypy不会报错,get居然报错
Browse files Browse the repository at this point in the history
  • Loading branch information
张聪龙 authored and messense committed Jan 15, 2021
1 parent b683a98 commit b19bce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wechatpy/work/client/api/external_contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def gen_all_by_user(self, userid: str, limit: int = 50):
if response.get("errcode") == 0:
yield from response.get("external_contact_list", [])
if response.get("next_cursor"):
cursor = response.get("next_cursor")
cursor = response["next_cursor"]
else:
break

Expand Down

0 comments on commit b19bce0

Please sign in to comment.