s110: address
This commit is contained in:
@@ -359,7 +359,7 @@ def complete_vars_for_machine(
|
||||
var_id = f"{generator_name}/{var_name}"
|
||||
vars_list.append(var_id)
|
||||
|
||||
except Exception:
|
||||
except (OSError, PermissionError):
|
||||
pass
|
||||
|
||||
vars_dict = dict.fromkeys(vars_list, "var")
|
||||
|
||||
@@ -70,7 +70,7 @@ def requires_explicit_update(m: Machine) -> bool:
|
||||
try:
|
||||
if m.select("config.clan.deployment.requireExplicitUpdate"):
|
||||
return False
|
||||
except Exception:
|
||||
except (ClanError, AttributeError):
|
||||
pass
|
||||
|
||||
try:
|
||||
|
||||
@@ -239,7 +239,7 @@ def test_run_exception(hosts: list[Remote], runtime: AsyncRuntime) -> None:
|
||||
runtime.async_run(None, host.run_local, ["exit 1"], RunOpts(shell=True)) # noqa: S604
|
||||
runtime.join_all()
|
||||
runtime.check_all()
|
||||
except Exception:
|
||||
except Exception: # noqa: S110
|
||||
pass
|
||||
else:
|
||||
msg = "should have raised Exception"
|
||||
@@ -255,7 +255,7 @@ def test_run_function_exception(hosts: list[Remote], runtime: AsyncRuntime) -> N
|
||||
runtime.async_run(None, some_func, host)
|
||||
runtime.join_all()
|
||||
runtime.check_all()
|
||||
except Exception:
|
||||
except Exception: # noqa: S110
|
||||
pass
|
||||
else:
|
||||
msg = "should have raised Exception"
|
||||
|
||||
Reference in New Issue
Block a user