diff --git a/kunyu/lib/encode.py b/kunyu/lib/encode.py index f036be1..7c9e500 100644 --- a/kunyu/lib/encode.py +++ b/kunyu/lib/encode.py @@ -38,7 +38,7 @@ def __init__(self, func): def __call__(self, *args, **kwargs): self.filename, self.status = self.func(*args, **kwargs) - icohash = EncodeHash.http_encode(self) if self.check_http() else self.http_encode() + icohash = EncodeHash.http_encode(self) if self.check_http() else EncodeHash.file_encode(self) return icohash if icohash is not None else logger.warning("The hash was not successfully computed") def check_http(self):