[fix] Small bandit changes (#3241)
This commit is contained in:
@@ -292,7 +292,8 @@ class LndRestWallet(Wallet):
|
||||
)
|
||||
else:
|
||||
return PaymentPendingStatus()
|
||||
except Exception:
|
||||
except Exception as exc:
|
||||
logger.debug(exc)
|
||||
continue
|
||||
|
||||
return PaymentPendingStatus()
|
||||
@@ -307,7 +308,8 @@ class LndRestWallet(Wallet):
|
||||
inv = json.loads(line)["result"]
|
||||
if not inv["settled"]:
|
||||
continue
|
||||
except Exception:
|
||||
except Exception as exc:
|
||||
logger.debug(exc)
|
||||
continue
|
||||
|
||||
payment_hash = base64.b64decode(inv["r_hash"]).hex()
|
||||
|
||||
Reference in New Issue
Block a user