ijgnd / anki__BetterSearch

7 stars 1 forks source link

dayOffset key error #14

Closed ijgnd closed 4 years ago

ijgnd commented 4 years ago

In the Anki forum I got this bug report:

Debug info:
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-09-11 19:55:24

Caught exception:
Traceback (most recent call last):
File “anki\config.py”, line 35, in get_immutable
File “anki\rsbackend_gen.py”, line 570, in get_config_json
File “anki\rsbackend.py”, line 265, in _run_command
anki.rsbackend.NotFoundError

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\Admin\AppData\Roaming\Anki2\addons21\1052724801\dialog__multi_line.py”, line 161, in
self.form.pb_date_rated.clicked.connect(lambda _, a=dr: self.onButton(a))
File “C:\Users\Admin\AppData\Roaming\Anki2\addons21\1052724801\dialog__multi_line.py”, line 166, in onButton
button_helper(self.form.pte, self.browser, self.mw, self.col, arg, remove_on_cancel)
File “C:\Users\Admin\AppData\Roaming\Anki2\addons21\1052724801\button_helper.py”, line 12, in button_helper
_button_helper(pte, parent, mw, col, arg, remove_on_cancel)
File “C:\Users\Admin\AppData\Roaming\Anki2\addons21\1052724801\button_helper.py”, line 43, in _button_helper
text_change_helper(pte, parent, mw, col, before=all_text, before_pos=pos)
File “C:\Users\Admin\AppData\Roaming\Anki2\addons21\1052724801\button_helper.py”, line 49, in text_change_helper
out = onSearchEditTextChange(
File “C:\Users\Admin\AppData\Roaming\Anki2\addons21\1052724801\onTextChange.py”, line 103, in onSearchEditTextChange
return range_dialog(parent, term, before, after, length, func_settext)
File “C:\Users\Admin\AppData\Roaming\Anki2\addons21\1052724801\onTextChange.py”, line 26, in range_dialog
d = DateRangeDialog(parent, term)
File “C:\Users\Admin\AppData\Roaming\Anki2\addons21\1052724801\dialog__date.py”, line 66, in init
self.today_in_dt = today_as_datetime_adjusted_for_next_day_starts_at()
File “C:\Users\Admin\AppData\Roaming\Anki2\addons21\1052724801\dialog__date.py”, line 28, in today_as_datetime_adjusted_for_next_day_starts_at
dayOffset = mw.col.conf[“rollover”] # by default 4
File “anki\config.py”, line 49, in getitem
File “anki\config.py”, line 37, in get_immutable
KeyError