Catch a startup error due to the usage of some antivirus

This commit is contained in:
Julien Duponchelle committed 2017-04-03 16:25:37 +02:00
1 parent 11c7f35ea2
commit b7e1a56056
1 file changed
+1 -1
+1 -1
View File
@@ -163,7 +163,7 @@ def pid_lock(path):
pid = int(f.read())
try:
os.kill(pid, 0) # If the proces is not running kill return an error
except OSError:
except (OSError, SystemError):
pid = None
except OSError as e:
log.critical("Can't open pid file %s: %s", pid, str(e))