Enable Ruff RSE (#113695)
This commit is contained in:
parent
685553d17d
commit
82a60fe8ad
155 changed files with 325 additions and 324 deletions
|
@ -52,14 +52,14 @@ class CachingStaticResource(StaticResource):
|
|||
filepath = await hass.async_add_executor_job(_get_file_path, *key)
|
||||
except (ValueError, FileNotFoundError) as error:
|
||||
# relatively safe
|
||||
raise HTTPNotFound() from error
|
||||
raise HTTPNotFound from error
|
||||
except HTTPForbidden:
|
||||
# forbidden
|
||||
raise
|
||||
except Exception as error:
|
||||
# perm error or other kind!
|
||||
request.app.logger.exception(error)
|
||||
raise HTTPNotFound() from error
|
||||
raise HTTPNotFound from error
|
||||
|
||||
content_type: str | None = None
|
||||
if filepath is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue