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