[].index() raises ValueError if the value is not in the list, so only catch that instead of using a bare except clause.
[].index() raises ValueError if the value is not in the list, so only
catch that instead of using a bare except clause.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator