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(