input_list_choice choice may be given either as sequence index or as the entry itself. When giving a wrong choice an "Error: Invalid Response" is printed. But in case of giving a wrong entry this fails and a ValueError is raised instead. The reason is a wrong fetched exception. Sequence.index does not raise an IndexError but a ValueError
Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Author | Repo | Branch | Lines +/- | |
|---|---|---|---|---|---|
| [bugfix] Improvements for input_list_choice() | Xqt | pywikibot/core | master | +39 -28 |
Related Objects
Related Objects
Event Timeline
Comment Actions
Change 656608 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Improvements for input_list_choice()
Comment Actions
Change 656608 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Improvements for input_list_choice()