diff options
-rw-r--r-- | Python/ceval.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 7a0895f..d7171c8 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1637,12 +1637,8 @@ eval_code2(co, globals, locals, } nstar = PySequence_Length(stararg); if (nstar < 0) { - if (!PyErr_Occurred) - PyErr_SetString( - PyExc_TypeError, - "len() of unsized object"); - x = NULL; - break; + x = NULL; + break; } } if (nk > 0) { |