Skip to content

Commit 79f329b

Browse files
committed
Fix the exception when IPython is not installed
1 parent 3c9f463 commit 79f329b

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)