jdlorimer / incremental-reading

Anki add-on providing incremental reading features
https://ankiweb.net/shared/info/935264945
ISC License
216 stars 38 forks source link

<class 'KeyError'>: 'schedLaterRandom' #94

Closed p2635 closed 5 years ago

p2635 commented 5 years ago

Describe the bug Error message after installing IR.

To Reproduce Steps to reproduce the behavior:

  1. Open Anki after installing addon

Expected behavior No error message on startup.

Screenshots Error message on startup.

Debug info: Anki 2.1.11 (3cf770c7) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3 Platform: Linux Flags: frz=True ao=True sv=1 Add-ons possibly involved: Incremental Reading v4913

Caught exception: File "aqt/progress.py", line 72, in handler File "aqt/main.py", line 122, in setupProfile File "aqt/main.py", line 263, in loadProfile File "anki/hooks.py", line 29, in runHook File "/home/seru/.local/share/Anki2/addons21/935264945/main.py", line 51, in onProfileLoaded self.settings = SettingsManager() File "/home/seru/.local/share/Anki2/addons21/935264945/settings.py", line 99, in init self.load() File "/home/seru/.local/share/Anki2/addons21/935264945/settings.py", line 120, in load self._update() File "/home/seru/.local/share/Anki2/addons21/935264945/settings.py", line 137, in _update self._updateUnmodified() File "/home/seru/.local/share/Anki2/addons21/935264945/settings.py", line 178, in _updateUnmodified if self.settings[k] == self.defaults[k]: <class 'KeyError'>: 'schedLaterRandom'

Specs (please complete the following information): Kubuntu 18.04 2.1.11 Incremental Reading Version v4.9.13

Additional context N/A

jdlorimer commented 5 years ago

I assume you installed an older version in the past? I'm able to reproduce a similar error in that situation.

I'll try to make this more robust.

jdlorimer commented 5 years ago

Let me know if this still happens with the current version.