1
0

ConnectionResetError handling.

This commit is contained in:
Alexander Andreev 2020-11-19 00:09:39 +04:00
parent 6dab626084
commit b970973018

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.")