1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-30 20:28:08 +00:00

Catch a startup error due to the usage of some antivirus

This commit is contained in:
Julien Duponchelle 2017-04-03 16:24:32 +02:00
parent 11c7f35ea2
commit b7e1a56056
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

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