Commit ef4cdad0 authored by Fred Drake's avatar Fred Drake

[].index() raises ValueError if the value is not in the list, so only

catch that instead of using a bare except clause.
parent 7def2564
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment