Fix HTTP 404 being logged as a stack trace (#75861)

This commit is contained in:
Franck Nijhof 2022-07-28 16:43:32 +02:00 committed by GitHub
parent 7251445ffb
commit 91180923ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ def _get_file_path(
return None
if filepath.is_file():
return filepath
raise HTTPNotFound
raise FileNotFoundError
class CachingStaticResource(StaticResource):