mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-23 18:54:05 +01:00
relay: catch OSError too when loading DB
This commit is contained in:
parent
d21344342d
commit
3a8b0aa123
@ -156,8 +156,8 @@ def loadDB():
|
|||||||
try:
|
try:
|
||||||
with open(dbname, "rb") as f:
|
with open(dbname, "rb") as f:
|
||||||
db = pickle.load(f)
|
db = pickle.load(f)
|
||||||
except (ValueError, IOError):
|
except (ValueError, IOError, OSError):
|
||||||
log.exception("Relay: failed to load links database %s"
|
log.info("Relay: failed to load links database %s"
|
||||||
", creating a new one in memory...", dbname)
|
", creating a new one in memory...", dbname)
|
||||||
db = {}
|
db = {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user