mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 15:45:36 +00:00
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:
|
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