aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index f558817..1863cc3 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1467,7 +1467,7 @@ if __name__ == "__main__":
try:
cache_file = open("{}/{}".format(WEECHAT_HOME, CACHE_NAME), 'r')
message_cache = json.loads(cache_file.read())
- except IOError:
+ except (IOError, ValueError):
message_cache = {}
# End global var section