From 759fa31dce08ef4a224318cb1630e2d07ffc6ec9 Mon Sep 17 00:00:00 2001 From: Rosio Date: Fri, 11 Aug 2023 12:25:08 -0700 Subject: [PATCH] make terminals_available false if key is not in settings dict yet (#261) --- nbclassic/tree/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbclassic/tree/handlers.py b/nbclassic/tree/handlers.py index 877875b56..fdc8a0954 100644 --- a/nbclassic/tree/handlers.py +++ b/nbclassic/tree/handlers.py @@ -66,7 +66,7 @@ def get(self, path=''): page_title=page_title, notebook_path=path, breadcrumbs=breadcrumbs, - terminals_available=self.settings['terminals_available'], + terminals_available=self.settings.get('terminals_available', False), server_root=self.settings['server_root_dir'], shutdown_button=self.settings.get('shutdown_button', False) ))