Skip to content

Commit

Permalink
tasks bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Dec 1, 2024
1 parent 24a5523 commit 3b5ac0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion say/crawler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ def get_data(self, force=False):
else:
r = request_with_cache(url)

if r.status_code == 200 or r.status_code == 302:
if r.status_code == 200:
result = r.json()
else:
print(url)
print("Cold not update!")
return

Expand Down

0 comments on commit 3b5ac0d

Please sign in to comment.