mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-23 10:44:09 +01:00
relay: catch OSError too when loading DB
This commit is contained in:
parent
d21344342d
commit
3a8b0aa123
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user