Skip to content

Commit 3d453a1

Browse files
Make DecodeError a subclass of ValueError too
1 parent 2745c53 commit 3d453a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/msgspec/_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22378,7 +22378,7 @@ PyInit__core(void)
2237822378
st->DecodeError = PyErr_NewExceptionWithDoc(
2237922379
"msgspec.DecodeError",
2238022380
"An error occurred while decoding an object",
22381-
st->MsgspecError, NULL
22381+
PyTuple_Pack(2, st->MsgspecError, PyExc_ValueError), NULL
2238222382
);
2238322383
if (st->DecodeError == NULL)
2238422384
return NULL;

0 commit comments

Comments
 (0)