Skip to content
Snippets Groups Projects
Commit 2201a325 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Correctly return the digest.

Gbp-Dch: ignore
parent 8b673b26
No related branches found
No related tags found
No related merge requests found
Pipeline #268971 passed
......@@ -353,7 +353,7 @@ class File(metaclass=abc.ABCMeta):
h.final()
try:
self._fuzzy_hash = h.hexdigest()
return h.hexdigest()
except ValueError:
# File must contain a certain amount of randomness.
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment