diff --git a/bench/patches/v5/fix_user_permissions.py b/bench/patches/v5/fix_user_permissions.py index 87d804d4..bdccf53c 100644 --- a/bench/patches/v5/fix_user_permissions.py +++ b/bench/patches/v5/fix_user_permissions.py @@ -20,7 +20,7 @@ def is_sudoers_set(): if return_code_check: try: bench_warn = change_uid_msg in get_cmd_output(cmd, _raise=False) - except Exception: + except subprocess.CalledProcessError: bench_warn = False finally: return_code_check = return_code_check and bench_warn