From 662577aea6557858320504b6670cae35df48eda6 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 30 Dec 2016 10:36:14 +0100 Subject: [PATCH] show error if cannot import plot module --- gui/qt/main_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 3af35fa0..ce7e7860 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -2121,7 +2121,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): def plot_history_dialog(self): try: from electrum.plot import plot_history - except: + except ImportError as e: + self.show_error(str(e)) return wallet = self.wallet history = wallet.get_history()