mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 02:38:10 +02:00
Enable Ruff TRY201 (#114269)
* Enable Ruff TRY201 * remove redundant rules
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user