mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
chore: specific Exception handled
ref: https://deepsource.io/gh/frappe/bench/run/c9ee328a-6f59-49a9-b21c-8e770bd14091/python/PYL-W0703
This commit is contained in:
parent
cd77b42255
commit
d5f8ad8e20
@ -20,7 +20,7 @@ def is_sudoers_set():
|
|||||||
if return_code_check:
|
if return_code_check:
|
||||||
try:
|
try:
|
||||||
bench_warn = change_uid_msg in get_cmd_output(cmd, _raise=False)
|
bench_warn = change_uid_msg in get_cmd_output(cmd, _raise=False)
|
||||||
except Exception:
|
except subprocess.CalledProcessError:
|
||||||
bench_warn = False
|
bench_warn = False
|
||||||
finally:
|
finally:
|
||||||
return_code_check = return_code_check and bench_warn
|
return_code_check = return_code_check and bench_warn
|
||||||
|
Loading…
Reference in New Issue
Block a user