From f96869039e4bb457414025465480b83b01a4d9dc Mon Sep 17 00:00:00 2001 From: RRosio Date: Thu, 10 Aug 2023 09:46:56 -0700 Subject: [PATCH] make terminals_available false if key is not in settings dict yet --- 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) ))