mirror of
https://github.com/JoinMarket-Org/joinmarket-clientserver.git
synced 2026-08-13 12:33:40 +02:00
Handle exceptions in direct_send()
This commit is contained in:
parent
e730a67c47
commit
1c01f766c2
1 changed files with 5 additions and 1 deletions
|
|
@ -618,9 +618,13 @@ class SpendTab(QWidget):
|
|||
makercount = int(self.widgets[1][1].text())
|
||||
mixdepth = int(self.widgets[2][1].text())
|
||||
if makercount == 0:
|
||||
txid = direct_send(mainWindow.wallet_service, amount, mixdepth,
|
||||
try:
|
||||
txid = direct_send(mainWindow.wallet_service, amount, mixdepth,
|
||||
destaddr, accept_callback=self.checkDirectSend,
|
||||
info_callback=self.infoDirectSend)
|
||||
except Exception as e:
|
||||
JMQtMessageBox(self, e.args[0], title="Error", mbtype="warn")
|
||||
return
|
||||
if not txid:
|
||||
self.giveUp()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue