Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SafetyQuincyF committed Oct 31, 2024
1 parent ac91abf commit 95fc6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safety/auth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,6 @@ def is_jupyter_notebook() -> bool:
shell = get_ipython()
# Check for the presence of 'IPKernelApp', indicating a Jupyter notebook environment.
return 'IPKernelApp' in shell.config
except (NameError, AttributeError):
except (ImportError, NameError, AttributeError):
# IPython is not available or has no `config` attribute; likely not a notebook.
return False

0 comments on commit 95fc6af

Please sign in to comment.