List filename in 404 error
This commit is contained in:
parent
76ddea56f8
commit
06812b975b
1 changed files with 1 additions and 1 deletions
|
@ -436,7 +436,7 @@ async def audio_file(request, type: str, id: int):
|
||||||
try:
|
try:
|
||||||
response = await file(filename)
|
response = await file(filename)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
raise SanicException("Not Found",404)
|
raise SanicException("Not Found: "+filename,404)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue