commit | 7def25641035d42478c5e8b98364dac5cc0504c0 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Fri May 11 19:44:55 2001 +0000 |
committer | Fred Drake <fdrake@acm.org> | Fri May 11 19:44:55 2001 +0000 |
tree | cd2ca6d5d03beb225a51abece42368a0666317ed | |
parent | a2133339ff2e2e4d66b491f9d023976eadfdb8df [diff] |
[].index() raises ValueError if the value is not in the list, so only catch that instead of using a bare except clause.