if the upgrade fails, ignore old conf

This commit is contained in:
Damien Elmes 2012-03-14 23:30:34 +09:00
parent 0d3fc59917
commit 3a57c19199

View file

@ -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()