Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit 7e978eb

Browse files
committed
fix ValueError argument in Multihash constructor
1 parent 7318ff5 commit 7e978eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multihash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __new__(cls, func, length, digest):
4646
try:
4747
f = Func(func)
4848
except ValueError as ve:
49-
raise ValueError("invalid hash function code", f)
49+
raise ValueError("invalid hash function code", func)
5050
return super(cls, Multihash).__new__(cls, f, length, digest)
5151

5252

0 commit comments

Comments
 (0)