|
@@ -88,7 +88,7 @@ class DownloadInfo: #pylint: disable=too-few-public-methods
|
|
if name in self._passthrough_properties:
|
|
if name in self._passthrough_properties:
|
|
return self._section_dict.get(name, fallback=None)
|
|
return self._section_dict.get(name, fallback=None)
|
|
if name == 'hashes':
|
|
if name == 'hashes':
|
|
- hashes_dict = dict()
|
|
|
|
|
|
+ hashes_dict = {}
|
|
for hash_name in (*self._hashes, 'hash_url'):
|
|
for hash_name in (*self._hashes, 'hash_url'):
|
|
value = self._section_dict.get(hash_name, fallback=None)
|
|
value = self._section_dict.get(hash_name, fallback=None)
|
|
if value:
|
|
if value:
|