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

Commit 05a9df0

Browse files
authored
Fix wrong key access when checking if post is already removed (#52)
* Add better logging for crashes * Fix wrong key access in queue sync
1 parent d8244bc commit 05a9df0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tor_archivist/core/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def explode_gracefully(error: RuntimeError) -> None:
5858
:param tor: the r/ToR helper object
5959
:return: Nothing. Everything dies here.
6060
"""
61-
logging.critical(error)
61+
logging.exception(error, exc_info=True)
6262
sys.exit(1)
6363

6464

tor_archivist/core/queue_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _auto_report_handling(cfg: Config, r_submission: Any, b_submission: Dict, re
7676

7777
# Check if the post has been removed by a mod
7878
if r_submission.removed_by_category:
79-
if not b_submission["removed_from_reddit"]:
79+
if not b_submission["removed_from_queue"]:
8080
remove_on_blossom(cfg, b_submission)
8181
# We can ignore the report
8282
return True

0 commit comments

Comments
 (0)