Changeset bd3b973c5dce…
Parent 42772e6f7836…
by
Changes to one file · Browse files at bd3b973c5dce Showing diff from parent 42772e6f7836 Diff from another changeset...
@@ -89,9 +89,12 @@ if not os.path.exists(self._path+'.dat'):
return
dbase = shelve.open(self._path)
- self._dbappname = dbase['APPNAME']
- self.version = dbase['VERSION']
- self._data.update(dbase.get('DATA', {}))
+ try:
+ self._dbappname = dbase['APPNAME']
+ self.version = dbase['VERSION']
+ self._data.update(dbase.get('DATA', {}))
+ except KeyError:
+ pass
dbase.close()
def write(self):
|
Loading...