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