fix flake8 F841 (local variable is assigned to but never used)

This commit is contained in:
Pavol Rusnak 2023-01-21 15:35:53 +00:00
parent 8a72585f00
commit e05340269b
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D
2 changed files with 2 additions and 0 deletions

View file

@ -46,6 +46,7 @@ async def create_pay_link(data: CreatePayLinkData, wallet_id: str) -> PayLink:
data.fiat_base_multiplier, data.fiat_base_multiplier,
), ),
) )
assert result
link = await get_pay_link(link_id) link = await get_pay_link(link_id)
assert link, "Newly created link couldn't be retrieved" assert link, "Newly created link couldn't be retrieved"

View file

@ -54,5 +54,6 @@ async def on_invoice_paid(payment: Payment) -> None:
}, },
timeout=40, timeout=40,
) )
assert r
except AssertionError: except AssertionError:
pass pass