mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +01:00
coremods/control: ignore errors when removing PID file
This commit is contained in:
parent
774f30c940
commit
b750bd4d15
@ -35,7 +35,10 @@ def _shutdown(irc=None):
|
||||
|
||||
# Remove our pid file.
|
||||
log.info("Removing our pid.")
|
||||
os.remove("%s.pid" % conf.confname)
|
||||
try:
|
||||
os.remove("%s.pid" % conf.confname)
|
||||
except OSError:
|
||||
log.exception("Failed to remove PID, ignoring...")
|
||||
|
||||
# Done.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user