added FIXME tags and fix WalletTypeInfo

This commit is contained in:
dni
2022-07-25 12:05:16 +02:00
parent 66477bc392
commit df00a018f0
3 changed files with 29 additions and 0 deletions
+2
View File
@@ -159,6 +159,8 @@ async def get_key_type(
invoice_checker = WalletInvoiceKeyChecker(api_key=token)
await invoice_checker.__call__(r)
wallet = WalletTypeInfo(1, invoice_checker.wallet)
# FIXME: wallet.wallet can be None here
assert wallet.wallet is not None
if (LNBITS_ADMIN_USERS and wallet.wallet.user not in LNBITS_ADMIN_USERS) and (
LNBITS_ADMIN_EXTENSIONS and pathname in LNBITS_ADMIN_EXTENSIONS
):