Skip to content

Commit

Permalink
Merge pull request #5 from wikiZ/main
Browse files Browse the repository at this point in the history
Update Local file encode bug
  • Loading branch information
0x7Fancy authored Aug 4, 2021
2 parents 04bd864 + c36e31a commit 956535e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kunyu/lib/encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 956535e

Please sign in to comment.