Skip to content

Commit 07f7bef

Browse files
authored
fix __init__.py
1 parent 96f9f85 commit 07f7bef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/rapidhash/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def rapidhash_file(filename,seed=None) -> int:
4444
try:
4545
return rs_rapidhash_file(filename,seed)
4646
except TypeError as e:
47-
if not isinstance(key, bytes):
48-
err = "key must be bytes"
47+
if not isinstance(filename, str):
48+
err = "filename must be a string"
4949
raise TypeError(err) from e
5050
if not isinstance(seed, int | None):
5151
err = "seed must be an integer or None"

0 commit comments

Comments
 (0)