aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 010715e..82e34b7 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2143,6 +2143,9 @@ def cache_load():
j = json.loads(line)
message_cache[j["channel"]].append(line)
dbg("Completed loading messages from cache.", main_buffer=True)
+ except ValueError:
+ w.prnt("", "Failed to load cache file, probably illegal JSON.. Ignoring")
+ pass
except IOError:
w.prnt("", "cache file not found")
pass