Don't error if calling ConvertToPyInPlace on bytes object

This commit is contained in:
baldurk
2017-09-06 16:28:32 +01:00
parent e88f00d7c7
commit 90aedf58e6
+1 -1
View File
@@ -420,7 +420,7 @@ struct TypeConversion<rdctype::array<byte>, false>
const rdctype::array<byte> &in, int *failIdx)
{
// can't modify bytes objects
return NULL;
return SWIG_Py_Void();
}
static PyObject *ConvertToPy(PyObject *self, const rdctype::array<byte> &in, int *failIdx)