Skip to content

Commit

Permalink
[Discord] Handle 520 HTTP status response in Twitter task
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Oct 18, 2023
1 parent 6a9c710 commit 17456fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Discord/cogs/twitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ async def check_tweets(self):
f"status with handle, {handle}"
)
continue
elif resp.status in (500, 502, 503, 504, 522):
elif resp.status in (500, 502, 503, 504, 520, 522):
# TODO: Log
await asyncio.sleep(1)
continue
Expand Down

0 comments on commit 17456fc

Please sign in to comment.