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'>: 'prioEnabled' when trying to use or open Options after updating to the commit with priorities #75

Closed aleksejrs closed 5 years ago

aleksejrs commented 6 years ago

https://github.com/luoliyan/incremental-reading/commit/9bb915dc9a0891bdc578db6a773bd93c4f2272c3

Debuginformationen:
Anki 2.1.0beta37 Python 3.6.2 Qt 5.9.2 PyQt 5.9
Platform: Linux
Flags: frz=True ao=True        

Caught exception:
  File "/home/fc/.local/share/Anki2/addons21/1152164089/main.py", line 91, in <lambda>
    lambda: SettingsDialog(self.settings),
  File "/home/fc/.local/share/Anki2/addons21/1152164089/gui.py", line 57, in __init__
    self.show()
  File "/home/fc/.local/share/Anki2/addons21/1152164089/gui.py", line 74, in show
    tabWidget.addTab(self._getSchedulingTab(), 'Scheduling')
  File "/home/fc/.local/share/Anki2/addons21/1152164089/gui.py", line 612, in _getSchedulingTab
    if self.settings['prioEnabled']:
  File "/home/fc/.local/share/Anki2/addons21/1152164089/settings.py", line 107, in __getitem__
    return self.settings[key]
<class 'KeyError'>: 'prioEnabled'
ghost commented 6 years ago

Oops. I think that's because the version number wasn't changed. @luoliyan can you do it?

aleksejrs commented 6 years ago

Yes, but changing it let #76 happen.

jdlorimer commented 5 years ago

Version bumped.