Enable Ruff TRY201 (#114269)

* Enable Ruff TRY201

* remove redundant rules
This commit is contained in:
Sid 2024-03-28 10:18:07 +01:00 committed by GitHub
parent 071c3abb69
commit f7b7f74d10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 71 additions and 66 deletions

View file

@ -76,9 +76,9 @@ async def async_exec(*args, display=False):
if display:
kwargs["stderr"] = asyncio.subprocess.PIPE
proc = await asyncio.create_subprocess_exec(*args, **kwargs)
except FileNotFoundError as err:
except FileNotFoundError:
printc(FAIL, f"Could not execute {args[0]}. Did you install test requirements?")
raise err
raise
if not display:
# Readin stdout into log