Bugfix: StandardError does not exist in Python 3.

This commit is contained in:
Tobias Gruetzmacher 2017-05-21 23:37:09 +02:00
parent a99098d5ad
commit f8def5b9db

View file

@ -83,5 +83,5 @@ class SingleInstance(object):
fcntl.lockf(self.fp, fcntl.LOCK_UN)
if os.path.isfile(self.lockfile):
os.unlink(self.lockfile)
except StandardError as e:
except Exception as e:
out.exception("could not remove lockfile: %s" % e)