show error if cannot import plot module
This commit is contained in:
parent
e6aac9ea99
commit
662577aea6
|
@ -2121,7 +2121,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||||
def plot_history_dialog(self):
|
def plot_history_dialog(self):
|
||||||
try:
|
try:
|
||||||
from electrum.plot import plot_history
|
from electrum.plot import plot_history
|
||||||
except:
|
except ImportError as e:
|
||||||
|
self.show_error(str(e))
|
||||||
return
|
return
|
||||||
wallet = self.wallet
|
wallet = self.wallet
|
||||||
history = wallet.get_history()
|
history = wallet.get_history()
|
||||||
|
|
Loading…
Reference in New Issue