summaryrefslogtreecommitdiff
path: root/crocoite
diff options
context:
space:
mode:
Diffstat (limited to 'crocoite')
-rw-r--r--crocoite/irc.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/crocoite/irc.py b/crocoite/irc.py
index cb40f4c..bd13831 100644
--- a/crocoite/irc.py
+++ b/crocoite/irc.py
@@ -631,7 +631,11 @@ class Dashboard:
if not buf:
return
- data = json.loads (buf)
+ try:
+ data = json.loads (buf)
+ except json.decoder.JSONDecodeError:
+ # ignore invalid
+ return
msgid = data['uuid']
if msgid in self.ignoreMsgid: