Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
olivmath committed Dec 24, 2023
1 parent 109bb8a commit c12ae25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions merkly/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class InvalidHashFunctionError(Exception):
"""Exception raised for invalid hash function."""

def __init__(self) -> None:
self.message = "Must type of: (str) -> str"
self.message = "Must type of: (bytes, bytes) -> bytes"
super().__init__(self.message)


Expand Down Expand Up @@ -89,7 +89,9 @@ def slice_in_pairs(list_item: list):


def validate_leafs(leafs: List[str]):
if len(leafs) < 2:
size = len(leafs)

if size < 2:
raise Exception("Invalid size, need > 2")

a = isinstance(leafs, List)
Expand Down

0 comments on commit c12ae25

Please sign in to comment.