get_amount returns None if there's an exception
This commit is contained in:
parent
04ee06985c
commit
d3ba8fb507
|
@ -816,9 +816,8 @@ class ElectrumWindow(QMainWindow):
|
||||||
|
|
||||||
amount = sum(map(lambda x:x[1], outputs))
|
amount = sum(map(lambda x:x[1], outputs))
|
||||||
|
|
||||||
try:
|
|
||||||
fee = self.fee_e.get_amount()
|
fee = self.fee_e.get_amount()
|
||||||
except Exception:
|
if fee is None:
|
||||||
QMessageBox.warning(self, _('Error'), _('Invalid Fee'), _('OK'))
|
QMessageBox.warning(self, _('Error'), _('Invalid Fee'), _('OK'))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -2303,9 +2302,8 @@ class ElectrumWindow(QMainWindow):
|
||||||
# run the dialog
|
# run the dialog
|
||||||
if not d.exec_(): return
|
if not d.exec_(): return
|
||||||
|
|
||||||
try:
|
|
||||||
fee = self.fee_e.get_amount()
|
fee = self.fee_e.get_amount()
|
||||||
except Exception:
|
if fee is None:
|
||||||
QMessageBox.warning(self, _('Error'), _('Invalid value') +': %s'%fee, _('OK'))
|
QMessageBox.warning(self, _('Error'), _('Invalid value') +': %s'%fee, _('OK'))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue