From 3a8b0aa123c32c55ea4cb599fe56c613c74c2d64 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 1 Apr 2016 18:31:53 -0700 Subject: [PATCH] relay: catch OSError too when loading DB --- plugins/relay.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/relay.py b/plugins/relay.py index aaeaed2..a2bf4c3 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -156,9 +156,9 @@ def loadDB(): try: with open(dbname, "rb") as f: db = pickle.load(f) - except (ValueError, IOError): - log.exception("Relay: failed to load links database %s" - ", creating a new one in memory...", dbname) + except (ValueError, IOError, OSError): + log.info("Relay: failed to load links database %s" + ", creating a new one in memory...", dbname) db = {} def exportDB():