Skip to content

Commit

Permalink
use get
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Jul 15, 2023
1 parent 50a555d commit b0d3cfb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion YYeTsFE
Submodule YYeTsFE updated 1 files
+1 −1 README.md
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ beautifulsoup4==4.12.2
tgbot-ping==1.0.7
redis==4.5.5
apscheduler==3.10.1
pymongo==4.4.0
pymongo==4.4.1
tornado==6.3.2
captcha==0.4
passlib==1.7.4
Expand All @@ -20,5 +20,5 @@ zhconv==1.4.3
jinja2==3.1.2
coloredlogs==15.0.1
meilisearch==0.28.1
sentry-sdk==1.28.0
sentry-sdk==1.28.1
pillow==9.5.0
2 changes: 1 addition & 1 deletion yyetsweb/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def get_old_ips(self) -> dict:
return cache
else:
data = self.session.get(self.endpoint).json()
result = data["result"]
result = data.get("result", [])
cursor = data.get("result_info", {}).get("cursors", {}).get("after")
while cursor:
logging.info("Fetching next page with cursor %s", cursor)
Expand Down

0 comments on commit b0d3cfb

Please sign in to comment.