We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53e0f0c commit c4d8f84Copy full SHA for c4d8f84
1 file changed
javaobj/modifiedutf8.py
@@ -46,7 +46,11 @@ def byte_to_int(data):
46
if isinstance(data, bytes):
47
return data[0]
48
49
- raise ValueError("Didn't get a byte as input")
+ raise ValueError(
50
+ "Expected byte or int as input, got: {0}".format(
51
+ type(data).__name__
52
+ )
53
54
55
56
else:
@@ -65,7 +69,11 @@ def byte_to_int(data):
65
69
if isinstance(data, str):
66
70
return ord(data[0])
67
71
68
72
73
74
75
76
77
78
79
# ------------------------------------------------------------------------------
0 commit comments