ConnectionResetError handling.
This commit is contained in:
parent
6dab626084
commit
b970973018
@ -106,3 +106,6 @@ class Scraper:
|
|||||||
remove(filepath)
|
remove(filepath)
|
||||||
except HTTPError as e:
|
except HTTPError as e:
|
||||||
print(e, f.download_url)
|
print(e, f.download_url)
|
||||||
|
except ConnectionResetError:
|
||||||
|
print("Remote host reset connection for", f.download_url, \
|
||||||
|
"Try again later.")
|
||||||
|
Loading…
Reference in New Issue
Block a user