fixed access to tx.error in case tx is None

This commit is contained in:
Tafelpoot 2014-10-23 13:48:12 +02:00
parent 11fc93dc4a
commit a597e26541
1 changed files with 4 additions and 1 deletions

View File

@ -1079,6 +1079,9 @@ class ElectrumWindow(QMainWindow):
try:
tx = self.wallet.make_unsigned_transaction(outputs, fee, None, coins = coins)
if not tx:
raise BaseException(_("Insufficient funds"))
else:
tx.error = None
except Exception as e:
traceback.print_exc(file=sys.stdout)