mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
don't warn when open_browser and not file_to_run
This commit is contained in:
parent
18022a7db8
commit
a45e997176
@ -738,7 +738,7 @@ class NotebookApp(BaseIPythonApplication):
|
||||
|
||||
nbdir = os.path.abspath(self.notebook_manager.notebook_dir)
|
||||
f = self.file_to_run
|
||||
if f.startswith(nbdir):
|
||||
if f and f.startswith(nbdir):
|
||||
f = f[len(nbdir):]
|
||||
else:
|
||||
self.log.warn(
|
||||
|
Loading…
Reference in New Issue
Block a user