Skip to content

Commit e0ca603

Browse files
authored
Merge pull request #120 from Thalmann/master
More user friendly error message
2 parents ac1193c + 4e8089d commit e0ca603

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mprof

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,9 @@ def add_brackets(xloc, yloc, xshift=0, color="r", label=None, options=None):
252252
"""
253253
try:
254254
import pylab as pl
255-
except ImportError:
255+
except ImportError as e:
256256
print("matplotlib is needed for plotting.")
257+
print(e)
257258
sys.exit(1)
258259
height_ratio = 20.
259260
vsize = (pl.ylim()[1] - pl.ylim()[0]) / height_ratio

0 commit comments

Comments
 (0)