mirror of
https://github.com/zedeus/nitter.git
synced 2026-01-29 23:02:49 -05:00
Catch failed guest token exception
This commit is contained in:
@@ -31,10 +31,12 @@ proc createMediaRouter*(cfg: Config) =
|
||||
let client = newAsyncHttpClient()
|
||||
try:
|
||||
await client.downloadFile($uri, filename)
|
||||
client.safeClose()
|
||||
except HttpRequestError:
|
||||
client.safeClose()
|
||||
removeFile(filename)
|
||||
resp Http404
|
||||
finally:
|
||||
client.safeClose()
|
||||
|
||||
sendFile(filename)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user