better error tracking
This commit is contained in:
@@ -134,9 +134,11 @@ def send_modmail(reddit: praw.Reddit, subreddit: str, subject: str, msg: str) ->
|
|||||||
try:
|
try:
|
||||||
print("Sending modmail via api/compose/")
|
print("Sending modmail via api/compose/")
|
||||||
reddit.post("api/compose/", data=data)
|
reddit.post("api/compose/", data=data)
|
||||||
except Exception:
|
except Exception as e:
|
||||||
# fallback/report if necessary
|
|
||||||
print("Failed to send modmail with new method")
|
print("Failed to send modmail with new method")
|
||||||
|
import traceback
|
||||||
|
print("Exception details:", repr(e))
|
||||||
|
print(traceback.format_exc())
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user