Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiaSliusar committed Aug 14, 2024
1 parent 5913030 commit 91c1a10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jupyterlab_server/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ def get_page_config(self) -> dict[str, Any]:
server_root = server_root.replace(os.sep, "/")
base_url = self.settings.get("base_url")
server_app = self.settings.get("serverapp")
allow_setup_custom_env_variables = server_app.allow_setup_custom_env_variables
assert server_app is not None
if server_app.allow_insecure_kernelspec_params:
allow_setup_custom_env_variables = server_app.allow_setup_custom_env_variables
else:
allow_setup_custom_env_variables = False

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

0 comments on commit 91c1a10

Please sign in to comment.