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

Commit

Permalink
Fix wrong key access when checking if post is already removed (#52)
Browse files Browse the repository at this point in the history
* Add better logging for crashes

* Fix wrong key access in queue sync
  • Loading branch information
TimJentzsch committed Jun 30, 2023
1 parent d8244bc commit 05a9df0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tor_archivist/core/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def explode_gracefully(error: RuntimeError) -> None:
:param tor: the r/ToR helper object
:return: Nothing. Everything dies here.
"""
logging.critical(error)
logging.exception(error, exc_info=True)
sys.exit(1)


Expand Down
2 changes: 1 addition & 1 deletion tor_archivist/core/queue_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _auto_report_handling(cfg: Config, r_submission: Any, b_submission: Dict, re

# Check if the post has been removed by a mod
if r_submission.removed_by_category:
if not b_submission["removed_from_reddit"]:
if not b_submission["removed_from_queue"]:
remove_on_blossom(cfg, b_submission)
# We can ignore the report
return True
Expand Down

0 comments on commit 05a9df0

Please sign in to comment.