mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-28 12:56:16 +02:00
Added try to lnurlpos to lnurldevice transfer to avoid crashing if lnurlpos does not exist
This commit is contained in:
@@ -39,6 +39,7 @@ async def m002_redux(db):
|
||||
"""
|
||||
Moves everything from lnurlpos to lnurldevices
|
||||
"""
|
||||
try:
|
||||
for row in [
|
||||
list(row) for row in await db2.fetchall("SELECT * FROM lnurlpos.lnurlposs")
|
||||
]:
|
||||
@@ -74,3 +75,5 @@ async def m002_redux(db):
|
||||
""",
|
||||
(row[0], row[1], row[3], row[4], row[5], row[6]),
|
||||
)
|
||||
except:
|
||||
return
|
Reference in New Issue
Block a user