mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
trivial: Fix lint issues.
This commit is contained in:
@@ -1002,8 +1002,10 @@ class BasicSwap(BaseApp):
|
||||
elif c in (Coins.XMR, Coins.WOW):
|
||||
try:
|
||||
ci.ensureWalletExists()
|
||||
except Exception as e:
|
||||
self.log.warning("Can't open %s wallet, could be locked.", ci.coin_name())
|
||||
except Exception as e: # noqa: F841
|
||||
self.log.warning(
|
||||
"Can't open %s wallet, could be locked.", ci.coin_name()
|
||||
)
|
||||
continue
|
||||
elif c == Coins.LTC:
|
||||
ci_mweb = self.ci(Coins.LTC_MWEB)
|
||||
|
||||
@@ -172,7 +172,9 @@ class PARTInterface(BTCInterface):
|
||||
elif balance_type == BalanceTypes.BLIND:
|
||||
unspent = self.rpc_wallet("listunspentblind")
|
||||
else:
|
||||
raise ValueError(f"getUnspentsByAddr not implemented for {balance_type} type")
|
||||
raise ValueError(
|
||||
f"getUnspentsByAddr not implemented for {balance_type} type"
|
||||
)
|
||||
for u in unspent:
|
||||
if u["spendable"] is not True:
|
||||
continue
|
||||
|
||||
@@ -114,7 +114,9 @@ class XMRInterface(CoinInterface):
|
||||
log_str: str = ""
|
||||
have_cc_tor_opt = "use_tor" in chain_client_settings
|
||||
if have_cc_tor_opt and chain_client_settings["use_tor"] is False:
|
||||
log_str = f" bypassing proxy (use_tor false for {self.coin_name()})"
|
||||
log_str = (
|
||||
f" bypassing proxy (use_tor false for {self.coin_name()})"
|
||||
)
|
||||
elif have_cc_tor_opt is False and is_private_ip_address(rpchost):
|
||||
log_str = " bypassing proxy (private ip address)"
|
||||
else:
|
||||
@@ -196,7 +198,7 @@ class XMRInterface(CoinInterface):
|
||||
self.rpc_wallet("store")
|
||||
self.rpc_wallet("close_wallet")
|
||||
self._log.debug(f"Attempt to save and close {self.coin_name()} wallet")
|
||||
except Exception as e:
|
||||
except Exception as e: # noqa: F841
|
||||
pass
|
||||
|
||||
self.rpc_wallet("open_wallet", params)
|
||||
|
||||
Reference in New Issue
Block a user