1
0
Fork 0

ConnectionResetError handling.

This commit is contained in:
Alexander Andreev 2020-11-19 00:09:39 +04:00
parent 6dab626084
commit b970973018
1 changed files with 3 additions and 0 deletions

View File

@ -106,3 +106,6 @@ class Scraper:
remove(filepath)
except HTTPError as e:
print(e, f.download_url)
except ConnectionResetError:
print("Remote host reset connection for", f.download_url, \
"Try again later.")