mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 01:35:20 +00:00
fix #5376
This commit is contained in:
parent
158090bf8b
commit
3b445d7248
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,7 @@ import datetime
|
||||||
import traceback
|
import traceback
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
import threading
|
import threading
|
||||||
|
import asyncio
|
||||||
|
|
||||||
from electrum.bitcoin import TYPE_ADDRESS
|
from electrum.bitcoin import TYPE_ADDRESS
|
||||||
from electrum.storage import WalletStorage
|
from electrum.storage import WalletStorage
|
||||||
|
@ -280,6 +281,7 @@ class ElectrumWindow(App):
|
||||||
self.is_exit = False
|
self.is_exit = False
|
||||||
self.wallet = None
|
self.wallet = None
|
||||||
self.pause_time = 0
|
self.pause_time = 0
|
||||||
|
self.asyncio_loop = asyncio.get_event_loop()
|
||||||
|
|
||||||
App.__init__(self)#, **kwargs)
|
App.__init__(self)#, **kwargs)
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ class SendScreen(CScreen):
|
||||||
self.payment_request_queued = text
|
self.payment_request_queued = text
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
uri = parse_URI(text, self.app.on_pr)
|
uri = parse_URI(text, self.app.on_pr, loop=self.app.asyncio_loop)
|
||||||
except InvalidBitcoinURI as e:
|
except InvalidBitcoinURI as e:
|
||||||
self.app.show_info(_("Error parsing URI") + f":\n{e}")
|
self.app.show_info(_("Error parsing URI") + f":\n{e}")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue