Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
Second attempt to get better uncaught exception handling (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimJentzsch authored Feb 23, 2023
1 parent d789f7d commit 983feb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tor/core/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def double_ctrl_c_handler(*args, **kwargs) -> None:
)
handle_rate_limit(e)
else:
log.exception("Uncaught exception")
log.error(f"Uncaught exception {e}", exc_info=e)
except (RequestException, ServerError, Forbidden) as e:
log.warning(f"{e} - Issue communicating with Reddit. Sleeping for 60s!")
time.sleep(60)
Expand Down

0 comments on commit 983feb2

Please sign in to comment.