mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 07:15:37 +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:
|
||||
await client.downloadFile($uri, filename)
|
||||
client.close()
|
||||
except:
|
||||
discard
|
||||
except HttpRequestError:
|
||||
removeFile(filename)
|
||||
resp Http404
|
||||
|
||||
sendFile(filename)
|
||||
|
||||
|
|
Loading…
Reference in a new issue