1
0

Added a missing return True statement in _check_file

This commit is contained in:
Alexander Andreev 2021-05-03 02:30:31 +04:00
parent 4f6f56ae7b
commit e7cf2e7c4b
Signed by: Arav
GPG Key ID: 610DF2574456329F

View File

@ -88,6 +88,7 @@ class Scraper:
if not f.hash_algorithm is None: if not f.hash_algorithm is None:
hexdig, dig = self._hash_file(filepath, f.hash_algorithm) hexdig, dig = self._hash_file(filepath, f.hash_algorithm)
return f.hash_value == hexdig or f.hash_value == dig return f.hash_value == hexdig or f.hash_value == dig
return True
def _download_file(self, f: FileInfo): def _download_file(self, f: FileInfo):
"""Download a single file.""" """Download a single file."""