Skip to content

Commit

Permalink
Merge pull request #1974 from YunoHost/fix-ipython-module-error
Browse files Browse the repository at this point in the history
[fix] Bad catch IPython missing
  • Loading branch information
alexAubin authored Oct 21, 2024
2 parents 77b8d87 + 3f65831 commit f3923f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def tools_shell(command=None):
from IPython import embed

embed()
except ImportError:
except (ImportError, ModuleNotFoundError):
logger.warn(
"You don't have IPython installed, consider installing it as it is way better than the standard shell."
)
Expand Down

0 comments on commit f3923f2

Please sign in to comment.