From 06812b975ba76912c345bc5b75f179c36a37e6f8 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Fri, 10 Mar 2023 19:23:33 +0000 Subject: [PATCH] List filename in 404 error --- web_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_server.py b/web_server.py index 7e8af5e..1189abe 100644 --- a/web_server.py +++ b/web_server.py @@ -436,7 +436,7 @@ async def audio_file(request, type: str, id: int): try: response = await file(filename) except FileNotFoundError: - raise SanicException("Not Found",404) + raise SanicException("Not Found: "+filename,404) return response