fix mypy for lnbits/extensions/splitpayments
This commit is contained in:
parent
c9b02a6470
commit
0efc27993e
|
@ -20,7 +20,7 @@ async def wait_for_paid_invoices():
|
|||
|
||||
|
||||
async def on_invoice_paid(payment: Payment) -> None:
|
||||
if payment.extra.get("tag") == "splitpayments":
|
||||
if not payment.extra or payment.extra.get("tag") == "splitpayments":
|
||||
# already a splitted payment, ignore
|
||||
return
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from fastapi import Request
|
||||
from fastapi.params import Depends
|
||||
from fastapi import Depends, Request
|
||||
from fastapi.templating import Jinja2Templates
|
||||
from starlette.responses import HTMLResponse
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
from http import HTTPStatus
|
||||
|
||||
from fastapi import Request
|
||||
from fastapi.params import Depends
|
||||
from fastapi import Depends, Request
|
||||
from starlette.exceptions import HTTPException
|
||||
|
||||
from lnbits.core.crud import get_wallet, get_wallet_for_key
|
||||
|
|
|
@ -104,7 +104,6 @@ exclude = """(?x)(
|
|||
| ^lnbits/extensions/offlineshop.
|
||||
| ^lnbits/extensions/paywall.
|
||||
| ^lnbits/extensions/satspay.
|
||||
| ^lnbits/extensions/splitpayments.
|
||||
| ^lnbits/extensions/streamalerts.
|
||||
| ^lnbits/extensions/tpos.
|
||||
| ^lnbits/extensions/watchonly.
|
||||
|
|
Loading…
Reference in New Issue
Block a user