8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 752e3d1 commit 36b0c2dCopy full SHA for 36b0c2d
msgpack/_msgpack.pyx
@@ -120,7 +120,7 @@ cdef class Packer(object):
120
ret = msgpack_pack_raw_body(&self.pk, rawval, len(o))
121
elif PyUnicode_Check(o):
122
if not self.encoding:
123
- raise TypeError("Can't encode utf-8 no encoding is specified")
+ raise TypeError("Can't pack unicode object: No encoding is specified")
124
o = PyUnicode_AsEncodedString(o, self.encoding, self.unicode_errors)
125
rawval = o
126
ret = msgpack_pack_raw(&self.pk, len(o))
0 commit comments