[CHORE] E722 bare exception fix (#1871)
* [CHORE] E722 bare exception fix remove all bare exceptions from codebase and change it in `.flake8`
This commit is contained in:
@@ -27,7 +27,7 @@ def load_macaroon(macaroon: str) -> str:
|
||||
# convert the bas64 macaroon to hex
|
||||
try:
|
||||
macaroon = base64.b64decode(macaroon).hex()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
return macaroon
|
||||
|
||||
|
||||
Reference in New Issue
Block a user