Fix white page on cached empty files
This commit is contained in:
parent
a78eea9dce
commit
ea4a8cab2f
|
@ -29,8 +29,9 @@ proc createMediaRouter*(cfg: Config) =
|
|||
try:
|
||||
await client.downloadFile($uri, filename)
|
||||
client.close()
|
||||
except:
|
||||
discard
|
||||
except HttpRequestError:
|
||||
removeFile(filename)
|
||||
resp Http404
|
||||
|
||||
sendFile(filename)
|
||||
|
||||
|
|
Loading…
Reference in New Issue