Fix two PEP8 errors

This commit is contained in:
JoeLametta
2018-01-04 20:57:24 +01:00
parent 1247c94e8c
commit 75a3d4bce1
2 changed files with 8 additions and 10 deletions

View File

@@ -104,9 +104,11 @@ class Persister:
try:
self.object = pickle.load(handle)
logger.debug('loaded persisted object from %r' % self._path)
except:
except Exception as e:
# TODO: restrict kind of caught exceptions?
# can fail for various reasons; in that case, pretend we didn't
# load it
logger.debug(e)
pass
def delete(self):