Skip to content

Commit 2c391e0

Browse files
committed
PR feedback: improve exception msg
- Change fixed `ip6zone` to `{proto.name}`, in case "utf-8" is used in other protocol
1 parent edcd724 commit 2c391e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multiaddr/codecs/utf8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
def to_bytes(proto, string):
1111
if len(string) == 0:
12-
raise ValueError("empty ip6zone")
12+
raise ValueError("{0} value must not be empty".format(proto.name))
1313
return string.encode('utf-8')
1414

1515

0 commit comments

Comments
 (0)