[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:
@@ -102,7 +102,7 @@ class LNPayWallet(Wallet):
|
||||
|
||||
try:
|
||||
data = r.json()
|
||||
except:
|
||||
except Exception:
|
||||
return PaymentResponse(
|
||||
False, None, 0, None, f"Got invalid JSON: {r.text[:200]}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user