Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve UnboundLocalError in launch_browser() #421

Merged
merged 1 commit into from
Feb 22, 2021
Merged

Solve UnboundLocalError in launch_browser() #421

merged 1 commit into from
Feb 22, 2021

Conversation

jamesmishra
Copy link
Contributor

Python's scoping rules cause the log statement to fail because _ was being redefined in launch_browser().

The issue was introduced in this commit and flagged by CI.

I can confirm that this bug causes JupyterLab to crash when it cannot find a web browser.

Python's scoping rules cause the log statement to fail
because `_` was being redefined in `launch_browser()`.
Copy link
Collaborator

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! We'll cut a patch release today.

@blink1073 blink1073 merged commit bc252d3 into jupyter-server:master Feb 22, 2021
@jamesmishra
Copy link
Contributor Author

Thank you!

@Zsailer
Copy link
Member

Zsailer commented Feb 22, 2021

Good catch @jamesmishra!

Zsailer added a commit to Zsailer/jupyter_server that referenced this pull request Nov 18, 2022
hMED22 pushed a commit to hMED22/jupyter_server that referenced this pull request Jan 23, 2023
Solve UnboundLocalError in launch_browser()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants