mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
[].index() raises ValueError if the value is not in the list, so only
catch that instead of using a bare except clause.
This commit is contained in:
@@ -86,7 +86,7 @@ def adjust_maker(w, inc):
|
||||
def validate_maker(w):
|
||||
try:
|
||||
i = maker_list.index(demo_maker.get())
|
||||
except:
|
||||
except ValueError:
|
||||
# Works here though. Why ? Beats me.
|
||||
return maker_list[0]
|
||||
# Works here though. Why ? Beats me.
|
||||
|
||||
Reference in New Issue
Block a user