Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
arcbtc committed Oct 22, 2024
1 parent ed125d3 commit 7f37329
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions views_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,7 @@ async def get_lnurldevice_payment_boltz(
try:
lnurldevicepayment.payload = payload
lnurldevicepayment.payhash = "pending"
lnurldevicepayment_updated = await update_lnurldevicepayment(
lnurldevicepayment
)
lnurldevicepayment_updated = await update_lnurldevicepayment(lnurldevicepayment)
assert lnurldevicepayment_updated
async with httpx.AsyncClient() as client:
response = await client.post(
Expand All @@ -299,8 +297,6 @@ async def get_lnurldevice_payment_boltz(
return resp
except Exception as exc:
lnurldevicepayment.payhash = "payment_hash"
lnurldevicepayment_updated = await update_lnurldevicepayment(
lnurldevicepayment
)
lnurldevicepayment_updated = await update_lnurldevicepayment(lnurldevicepayment)
assert lnurldevicepayment_updated
return {"status": "ERROR", "reason": str(exc)}

0 comments on commit 7f37329

Please sign in to comment.