From: John Runyon Date: Thu, 15 Jun 2023 02:47:10 +0000 (-0600) Subject: fix error handling in reddark X-Git-Url: https://jfr.im/git/erebus.git/commitdiff_plain/ddea07bbe93424814cba63d8faab2b28c0b80e8a fix error handling in reddark --- diff --git a/modules/reddark.py b/modules/reddark.py index 540c750..0ade6d3 100644 --- a/modules/reddark.py +++ b/modules/reddark.py @@ -139,7 +139,7 @@ def gotParent(parent): else: debug("Unknown event: " + msg, False) except Exception as e: - debug("Failed to parse an event: " + e) + debug("Failed to parse an event: " + repr(e)) #{"type":"Delta","content":{"name":"r/TrainCrashSeries","section":"1k+","previous_state":"PRIVATE","state":"RESTRICTED"}} #{"type":"CurrentStateUpdate","content":{"sections":["40+ million","30+ million","20+ million","10+ million","5+ million","1+ million","500k+","250k+","100k+","50k+","5k+","1k+","1k and below"],"subreddits":[{"name":"r/032r4r","section":"1k+","state":"PRIVATE"},{"name":"r/0sanitymemes","section":"5k+","state":"PRIVATE"},{"name":"r/1022","section":"5k+","state":"PRIVATE"},{"name":"r/11foot8","section":"100k+","state":"PRIVATE"},{"name":"r/1200isjerky","section":"50k+","state":"PRIVATE"},{"name":"r