]> jfr.im git - erebus.git/commitdiff
fix error handling in reddark
authorJohn Runyon <redacted>
Thu, 15 Jun 2023 02:47:10 +0000 (20:47 -0600)
committerJohn Runyon <redacted>
Thu, 15 Jun 2023 02:47:10 +0000 (20:47 -0600)
modules/reddark.py

index 540c7502c095461c645c9603344fa51e8a82898b..0ade6d3824bb3d28e79863f39e9e42ebe21789d7 100644 (file)
@@ -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