no args cause an error

Bug #460731 reported by Duane Hinnen
6
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)
Revision history for this message
Bodsda (bodsda) wrote :

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

Changed in cheatsheet:
status: New → In Progress
status: In Progress → Confirmed
Revision history for this message
Duane Hinnen (duanedesign) wrote :

the code i got from Bodsda appears to have fixed this bug. It is no longer a problem for me

Bodsda (bodsda)
Changed in cheatsheet:
status: Confirmed → In Progress
Bodsda (bodsda)
Changed in cheatsheet:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.