3
0
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:
James Lu 2016-10-15 14:30:52 -07:00
parent 774f30c940
commit b750bd4d15

View File

@ -35,7 +35,10 @@ def _shutdown(irc=None):
# Remove our pid file. # Remove our pid file.
log.info("Removing our pid.") 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. # Done.