Fly

Unexpected fail: max arg is an empty sequence

Bug #927250 reported by Ivan Necas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fly
Fix Committed
Critical
Unassigned

Bug Description

Accidental fail while in practicing words:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 530, in __bootstrap_inner
    self.run()
  File "./main.py", line 152, in run
    self.main_loop()
  File "./main.py", line 181, in main_loop
    self.gui.show_word_to_type(self.model.get_qwerty_letters_to_type())
  File "/home/inecas/Projects/plover/flyploverfly-reset-stats/fly/models/gamemodel.py", line 180, in get_qwerty_letters_to_type
    self.input_word)
  File "/home/inecas/Projects/plover/flyploverfly-reset-stats/fly/models/keyhighlighting.py", line 52, in get_qwerty_letters_to_type
    real_letters = self.get_real_letters(steno_word)
  File "/home/inecas/Projects/plover/flyploverfly-reset-stats/fly/models/keyhighlighting.py", line 120, in get_real_letters
    previous_letter_order)
  File "/home/inecas/Projects/plover/flyploverfly-reset-stats/fly/models/keyhighlighting.py", line 156, in __pick_side
    return letters_right, max(right_ordering)
ValueError: max() arg is an empty sequence

Revision history for this message
Ivan Necas (necasik) wrote :

chord-word to reproduce:

{"-9Z": "900"}

Revision history for this message
Pragma Nolint (pragma-nolint) wrote :

Thanks for the report.

The problem is that numbers in the chords presented for users to type is not supported in Fly, but I neglected to remove them from the dict in the post 0.0.1 Fly development update (which included a dictionary upgrade from plover 2.2.0). That's been remedied so revision 15 and later shouldn't show that problem.

Changed in flyploverfly:
importance: Undecided → Critical
status: New → Incomplete
status: Incomplete → Fix Committed
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.