Skip to content

Commit

Permalink
Catch all exceptions in process_invalid()
Browse files Browse the repository at this point in the history
We don't really need to specify exception type here.
  • Loading branch information
luk1337 committed Jun 11, 2023
1 parent d793acf commit 11828cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def process_invalid():
print(f"Error getting invalid issues - {resp.json()}")
return
issues = resp.json()
except requests.exceptions.RequestException | requests.exceptions.JSONDecodeError as e:
except Exception as e:
print(e)
return

Expand Down

0 comments on commit 11828cb

Please sign in to comment.