Fix white page on cached empty files
This commit is contained in:
parent
a78eea9dce
commit
ea4a8cab2f
1 changed files with 3 additions and 2 deletions
|
@ -29,8 +29,9 @@ proc createMediaRouter*(cfg: Config) =
|
||||||
try:
|
try:
|
||||||
await client.downloadFile($uri, filename)
|
await client.downloadFile($uri, filename)
|
||||||
client.close()
|
client.close()
|
||||||
except:
|
except HttpRequestError:
|
||||||
discard
|
removeFile(filename)
|
||||||
|
resp Http404
|
||||||
|
|
||||||
sendFile(filename)
|
sendFile(filename)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue