From b4e3106cbbda2b0451a744a497c2bb765ea650ef Mon Sep 17 00:00:00 2001 From: Yoan Tournade Date: Mon, 5 Nov 2018 18:06:57 +0100 Subject: [PATCH] Display matplolib import error --- tests/vector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/vector.py b/tests/vector.py index ce07257..6bca435 100644 --- a/tests/vector.py +++ b/tests/vector.py @@ -16,8 +16,8 @@ def plot_peaks(x, indexes, algorithm=None, mph=None, mpd=None): """Plot results of the peak dectection.""" try: import matplotlib.pyplot as plt - except ImportError: - print('matplotlib is not available.') + except ImportError as e: + print('matplotlib is not available.', e) return _, ax = plt.subplots(1, 1, figsize=(8, 4)) ax.plot(x, 'b', lw=1)