mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
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:
parent
4c54f598ac
commit
c5a784a982
@ -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
|
||||
#-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user