mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
if the upgrade fails, ignore old conf
This commit is contained in:
parent
0d3fc59917
commit
3a57c19199
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ class Upgrader(object):
|
|||
if not os.path.exists(p):
|
||||
return
|
||||
# load old settings and copy over
|
||||
self._loadConf(p)
|
||||
try:
|
||||
self._loadConf(p)
|
||||
except:
|
||||
# can't load old config file
|
||||
return
|
||||
self._copySettings()
|
||||
# and show the wizard
|
||||
self._showWizard()
|
||||
|
|
Loading…
Reference in a new issue