From f8def5b9db24bf2edc7d4d6ab4213fab9dab36d0 Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 21 May 2017 23:37:09 +0200 Subject: [PATCH] Bugfix: StandardError does not exist in Python 3. --- dosagelib/singleton.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dosagelib/singleton.py b/dosagelib/singleton.py index b985497ae..d4ab6ae32 100644 --- a/dosagelib/singleton.py +++ b/dosagelib/singleton.py @@ -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)