Skip to content

Commit c795eeb

Browse files
authored
Fix ModuleNotFoundError error when IPython is not installed (#1247)
* Fix the exception when IPython is not installed * Install IPython on the Python 3.9/NumPy 1.20 test build only * Revert "Install IPython on the Python 3.9/NumPy 1.20 test build only" This reverts commit db36410.
1 parent b51e3c2 commit c795eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygmt/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
try:
99
import IPython
10-
except KeyError:
10+
except ModuleNotFoundError:
1111
IPython = None # pylint: disable=invalid-name
1212

1313

0 commit comments

Comments
 (0)