mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-23 04:05:15 +00:00
Failing to load a crawler state pickle uses default values, but the exception clause to detect this failure is too narrow; it can also fail with EOFError or KeyError for example.
This commit is contained in:
parent
d278b1220f
commit
3cb99364e6
@ -194,7 +194,7 @@ class ShareCrawler(service.MultiService):
|
||||
f = open(self.statefile, "rb")
|
||||
state = pickle.load(f)
|
||||
f.close()
|
||||
except EnvironmentError:
|
||||
except Exception:
|
||||
state = {"version": 1,
|
||||
"last-cycle-finished": None,
|
||||
"current-cycle": None,
|
||||
|
Loading…
x
Reference in New Issue
Block a user