Catch a startup error due to the usage of some antivirus

pull/967/head
Julien Duponchelle 7 years ago
parent 11c7f35ea2
commit b7e1a56056
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

@ -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))

Loading…
Cancel
Save