mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
Fix HTTP 404 being logged as a stack trace (#75861)
This commit is contained in:
parent
7251445ffb
commit
91180923ae
@ -33,7 +33,7 @@ def _get_file_path(
|
|||||||
return None
|
return None
|
||||||
if filepath.is_file():
|
if filepath.is_file():
|
||||||
return filepath
|
return filepath
|
||||||
raise HTTPNotFound
|
raise FileNotFoundError
|
||||||
|
|
||||||
|
|
||||||
class CachingStaticResource(StaticResource):
|
class CachingStaticResource(StaticResource):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user