[fix] bandit assert warnings (#3243)

Co-authored-by: dni  <office@dnilabs.com>
This commit is contained in:
Vlad Stan
2025-07-05 13:16:49 +03:00
committed by GitHub
co-authored by dni ⚡
parent 841c8ce3a9
commit 07c62285c3
28 changed files with 196 additions and 220 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ def load_macaroon(
aes = AESCipher(key.encode())
return aes.decrypt(encrypted_macaroon)
assert macaroon, "macaroon must be set here"
if not macaroon:
raise ValueError("macaroon must be set here")
# if the macaroon is a file path, load it and return hex version
if macaroon.split(".")[-1] == "macaroon":