fixed access to tx.error in case tx is None
This commit is contained in:
parent
11fc93dc4a
commit
a597e26541
@ -1079,7 +1079,10 @@ class ElectrumWindow(QMainWindow):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
tx = self.wallet.make_unsigned_transaction(outputs, fee, None, coins = coins)
|
tx = self.wallet.make_unsigned_transaction(outputs, fee, None, coins = coins)
|
||||||
tx.error = None
|
if not tx:
|
||||||
|
raise BaseException(_("Insufficient funds"))
|
||||||
|
else:
|
||||||
|
tx.error = None
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
traceback.print_exc(file=sys.stdout)
|
traceback.print_exc(file=sys.stdout)
|
||||||
self.show_message(str(e))
|
self.show_message(str(e))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user