Better error handling when ipython is not installed
gajim/dev/ipython_view.py
sets IPython
to None
if IPython
module cannot be imported.
Then, when I run ./launch.py -i
, gajim outputs
Traceback (most recent call last):
File ".../gajim/gajim/app_actions.py", line 314, in toggle_ipython
app.interface.create_ipython_window()
File ".../gajim/gajim/gui_interface.py", line 2578, in create_ipython_window
view = IPythonView()
File ".../gajim/gajim/dev/ipython_view.py", line 600, in __init__
input_func=self.raw_input)
File ".../gajim/gajim/dev/ipython_view.py", line 115, in __init__
io = IPython.utils.io
AttributeError: 'NoneType' object has no attribute 'utils'
Gajim started from ./launch.py
should report something meaningful and already running Gajim should not try to use None
.