1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Alexander Andreev 21837c5335 Updated changelog. 2020-11-19 00:09:56 +04:00
Alexander Andreev b970973018 ConnectionResetError handling. 2020-11-19 00:09:39 +04:00
2 changed files with 5 additions and 2 deletions

View File

@ -4,8 +4,8 @@
### Added
- For 2ch.hk check for if a file is a sticker was added;
- Encoding for `!op.txt` file was explicitly set to `utf-8`;
- Handling of HTTP errors was added so now program won't crash if file doesn't
exist or not accessible for any other reason;
- Handling of HTTP errors and reset connection error was added so now program
won't crash if file doesn't exist or not accessible for any other reason;
- To a scraper was added matching of hashes of two files that happen to share
same name and size, but hash reported by an imageboard is not the same as of
a file. It results in excessive downloading and hash calculations. Hopefully,

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