From e96944a4fae70dbb8213cb36a63d6eebe1257b3f Mon Sep 17 00:00:00 2001 From: dni Date: Wed, 20 Jul 2022 10:24:40 +0200 Subject: [PATCH] fully fix decorators, thanks calle --- lnbits/decorators.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnbits/decorators.py b/lnbits/decorators.py index 77fe32276..b74230ef8 100644 --- a/lnbits/decorators.py +++ b/lnbits/decorators.py @@ -171,9 +171,10 @@ async def get_key_type( if e.status_code == HTTPStatus.BAD_REQUEST: raise if e.status_code == HTTPStatus.UNAUTHORIZED: - return WalletTypeInfo(2, None) + return WalletTypeInfo(2, Wallet()) except: raise + return wallet async def require_admin_key(