summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/abstract.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index a8823eb..cac767f 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -912,6 +912,7 @@ PySequence_Index(s, o)
if(err) return -1;
if(! not_equal) return i;
}
+ PyErr_SetString(PyExc_ValueError, "list.index(x): x not in list");
return -1;
}