better error tracking

This commit is contained in:
2026-03-04 22:23:49 +00:00
parent cfa66f592a
commit 19354ba20c

View File

@@ -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