Skip to content

Commit 91c1a10

Browse files
Fix linting
1 parent 5913030 commit 91c1a10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jupyterlab_server/handlers.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ def get_page_config(self) -> dict[str, Any]:
8383
server_root = server_root.replace(os.sep, "/")
8484
base_url = self.settings.get("base_url")
8585
server_app = self.settings.get("serverapp")
86-
allow_setup_custom_env_variables = server_app.allow_setup_custom_env_variables
86+
assert server_app is not None
87+
if server_app.allow_insecure_kernelspec_params:
88+
allow_setup_custom_env_variables = server_app.allow_setup_custom_env_variables
89+
else:
90+
allow_setup_custom_env_variables = False
8791

8892
# Remove the trailing slash for compatibility with html-webpack-plugin.
8993
full_static_url = self.static_url_prefix.rstrip("/")

0 commit comments

Comments
 (0)