no args cause an error
Bug #460731 reported by
Duane Hinnen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cheatsheet |
Fix Released
|
Undecided
|
Bodsda |
Bug Description
running cheatsheet.py results in an error
Traceback (most recent call last):
File "cheatsheet.py", line 153, in <module>
main()
File "cheatsheet.py", line 19, in main
if len(argv) < 3 and argv[1] not in singles:
IndexError: list index out of range
Changed in cheatsheet: | |
assignee: | nobody → Bodsda (bodsda) |
Changed in cheatsheet: | |
status: | Confirmed → In Progress |
Changed in cheatsheet: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Confirmed as a bug. Seems to be the code querying the content of argv[1] when only argv[0] exists. Should just be a case of adding one extra conditional. Program still functions when used with arguments