Skip to content

Info Bar crashes on opening #100

@strnjakov

Description

@strnjakov

I press Info bar, and it says "anki encountered an error"

--- Error Log ---

Anki 25.02.4 (a5c33ad0) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.26100

Traceback (most recent call last):
File "aqt.webview", line 188, in cmd
File "aqt.webview", line 273, in _onCmd
File "aqt.webview", line 801, in _onBridgeCmd
File "C:\Users\u5509221\AppData\Roaming\Anki2\addons21\1136455830\Bottom_Bar.py", line 99, in linkHandler_wrap
Card_Info._card_stats.toggle()
File "C:\Users\u5509221\AppData\Roaming\Anki2\addons21\1136455830\Card_Info.py", line 73, in toggle
self.show()
File "C:\Users\u5509221\AppData\Roaming\Anki2\addons21\1136455830\Card_Info.py", line 62, in show
self._update()
File "C:\Users\u5509221\AppData\Roaming\Anki2\addons21\1136455830\Card_Info.py", line 418, in _update
txt += r._revlogData_mod(current_card, card_stats)
File "C:\Users\u5509221\AppData\Roaming\Anki2\addons21\1136455830\Card_Info.py", line 100, in _revlogData_mod
tstr = ["Learn", "Review", "Relearn", "Filtered", "Resched"][type]
IndexError: list index out of range

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Advanced Browser ['874215009', 2024-10-27T14:20, 'None', '']
Advanced Review Bottom Bar ['1136455830', 2024-08-22T12:04, 'None', mod]
Anki Note Linker ['1077002392', 2025-04-27T15:16, 'None', mod]
Deck Progress Bar ['870148186', 2025-05-22T23:00, 'None', '']
Progress bar - Visualize reviewed cards and remaining Fixed by Shige ['1708250053', 2024-11-10T20:00, 'None', mod]
Review Heatmap ['1771074083', 2022-06-30T02:43, 'None', '']
Undelete deleted note ['912930620', 2022-03-03T23:40, 'None', '']

===IDs of active AnkiWeb add-ons===
1077002392 1136455830 1708250053 1771074083 870148186 874215009 912930620

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions