Skip to content

Commit

Permalink
make terminals_available false if key is not in settings dict yet (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
RRosio authored Aug 11, 2023
1 parent d6f7ec4 commit 759fa31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbclassic/tree/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
))
Expand Down

0 comments on commit 759fa31

Please sign in to comment.