mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 20:40:18 +00:00
Enable RUF101 (#135835)
This commit is contained in:
committed by
GitHub
parent
ef8b8fbbaa
commit
c651e2b3c3
@@ -93,7 +93,7 @@ def raise_for_blocking_call(
|
||||
return
|
||||
|
||||
if found_frame is None:
|
||||
raise RuntimeError( # noqa: TRY200
|
||||
raise RuntimeError( # noqa: B904
|
||||
f"Caught blocking call to {func.__name__} "
|
||||
f"with args {mapped_args.get('args')} "
|
||||
f"in {offender_filename}, line {offender_lineno}: {offender_line} "
|
||||
|
||||
Reference in New Issue
Block a user