Skip to content

Commit

Permalink
don't retry get price.log on 404
Browse files Browse the repository at this point in the history
  • Loading branch information
Azulinho committed Nov 2, 2023
1 parent a33af66 commit 841c90e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2312,6 +2312,8 @@ def get_price_log(
try:
response: requests.Response = session.get(query, timeout=30)
status: int = response.status_code
if status == 404:
return (False, [])
if status != 200:
response.raise_for_status()
else:
Expand Down

0 comments on commit 841c90e

Please sign in to comment.