mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
catch any load error for config file
This commit is contained in:
parent
24b8ddce29
commit
3a43f02903
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class Config(dict):
|
|||
try:
|
||||
f = open(db)
|
||||
self.update(cPickle.load(f))
|
||||
except (IOError, EOFError):
|
||||
except:
|
||||
# config file was corrupted previously
|
||||
pass
|
||||
self.defaults()
|
||||
|
|
Loading…
Reference in a new issue