don't warn when open_browser and not file_to_run

This commit is contained in:
MinRK 2013-10-22 09:54:28 -07:00
parent 18022a7db8
commit a45e997176

View File

@ -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(