summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 411f1e0..598269f 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -1101,6 +1101,8 @@ r_object(RFILE *p)
case TYPE_SMALL_TUPLE:
n = (unsigned char) r_byte(p);
+ if (PyErr_Occurred())
+ break;
goto _read_tuple;
case TYPE_TUPLE:
n = r_long(p);