show error message when parsing empty tx
This commit is contained in:
@@ -2018,9 +2018,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||
try:
|
||||
tx = tx_from_str(txt)
|
||||
return Transaction(tx)
|
||||
except:
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
self.show_critical(_("Electrum was unable to parse your transaction"))
|
||||
except BaseException as e:
|
||||
self.show_critical(_("Electrum was unable to parse your transaction") + ":\n" + str(e))
|
||||
return
|
||||
|
||||
def read_tx_from_qrcode(self):
|
||||
|
||||
Reference in New Issue
Block a user