From 19354ba20cd890bcfbe3ea6fe62f83b48b3e3cf9 Mon Sep 17 00:00:00 2001 From: Slfhstd Date: Wed, 4 Mar 2026 22:23:49 +0000 Subject: [PATCH] better error tracking --- Bot/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Bot/main.py b/Bot/main.py index c639636..27075f5 100644 --- a/Bot/main.py +++ b/Bot/main.py @@ -134,9 +134,11 @@ def send_modmail(reddit: praw.Reddit, subreddit: str, subject: str, msg: str) -> try: print("Sending modmail via api/compose/") reddit.post("api/compose/", data=data) - except Exception: - # fallback/report if necessary + except Exception as e: print("Failed to send modmail with new method") + import traceback + print("Exception details:", repr(e)) + print(traceback.format_exc()) raise