Update README.md with latest changes

This commit is contained in:
Alessandro
2020-04-15 20:23:26 +02:00
parent 6e0a161b89
commit ce2cfdc76a
2 changed files with 7 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ class DownloadThread(BaseDownloadThread):
"""Verify the checksum of the downloaded data and set the status accordingly."""
try:
is_checksum_ok = checksum_ok(raw_data, self._target.hash_code)
except Exception: # Invalid hash code.
except ValueError: # Invalid hash code.
self.status = ThreadStatus.NO_CONNECTION_ERR
return True
else: