AttributeError: 'NoneType' object has no attribute 'grade'

Bug #1815983 reported by themusicgod1
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mnemosyne (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

card changed, and I hit 0 quickly, resulting in

An unexpected error has occurred.
Please forward the following info to the developers:

Traceback (innermost last):
  File "/usr/lib/python3/dist-packages/mnemosyne/pyqt_ui/review_wdgt.py", line 324, in keyPressEvent
    self.grade_answer(self.key_to_grade_map[event.key()])
  File "/usr/lib/python3/dist-packages/mnemosyne/pyqt_ui/review_wdgt.py", line 396, in grade_answer
    self.review_controller().grade_answer(grade)
  File "/usr/lib/python3/dist-packages/mnemosyne/libmnemosyne/review_controllers/SM2_controller.py", line 149, in grade_answer
    previous_grade = card_to_grade.grade
 AttributeError: 'NoneType' object has no attribute 'grade'

ubuntu: 18.04 LTS bionic
mnemosyne: 2.4-0.1

Tags: bionic
Revision history for this message
themusicgod1 (themusicgod1) wrote :

Actually can reproduce this 100%, if you
1) activate only a set of cards that there are no non-memorized cards,
2) hit '0'

Revision history for this message
themusicgod1 (themusicgod1) wrote :

fixed in jammy

Changed in mnemosyne (Ubuntu):
status: New → 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.