mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02: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:
|
try:
|
||||||
f = open(db)
|
f = open(db)
|
||||||
self.update(cPickle.load(f))
|
self.update(cPickle.load(f))
|
||||||
except (IOError, EOFError):
|
except:
|
||||||
# config file was corrupted previously
|
# config file was corrupted previously
|
||||||
pass
|
pass
|
||||||
self.defaults()
|
self.defaults()
|
||||||
|
|
Loading…
Reference in a new issue