[fix] Small bandit changes (#3241)
This commit is contained in:
@@ -2,6 +2,8 @@ import base64
|
||||
from getpass import getpass
|
||||
from typing import Optional
|
||||
|
||||
from loguru import logger
|
||||
|
||||
from lnbits.utils.crypto import AESCipher
|
||||
|
||||
|
||||
@@ -39,7 +41,7 @@ def load_macaroon(
|
||||
try:
|
||||
macaroon = base64.b64decode(macaroon).hex()
|
||||
return macaroon
|
||||
except Exception:
|
||||
pass
|
||||
except Exception as exc:
|
||||
logger.debug(exc)
|
||||
|
||||
return macaroon
|
||||
|
||||
Reference in New Issue
Block a user