Fix bug when attempting to remove old nbserver info files

When list_running_servers find an old nbserver-xxxx.json info file, it attempts to delete it. It needs to use the full path rather than the filename. An exception was being raised, but the error was suppressed silently.
This commit is contained in:
Jim Kitchen 2016-11-11 09:13:22 -06:00
parent 4c54f598ac
commit c5a784a982

View File

@ -1330,7 +1330,7 @@ def list_running_servers(runtime_dir=None):
else:
# If the process has died, try to delete its info file
try:
os.unlink(file)
os.unlink(os.path.join(runtime_dir, file))
except OSError:
pass # TODO: This should warn or log or something
#-----------------------------------------------------------------------------