mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +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.")
|
||||
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