ijgnd / anki__BetterSearch

7 stars 1 forks source link

Error when opening browser on 2.1.22 #6

Closed AnKingMed closed 4 years ago

AnKingMed commented 4 years ago

image

This is the error I'm getting (advanced browser is toggled off)

ijgnd commented 4 years ago

Thanks for the report.

But could you try again? This looks very much like a problem with advanced browser to me:

Advanced browser instantiates the class CardStats here: cs = CardStats(None, None). So the arguments are "None, None".

But CardStats from anki.py wants these arguments: def __init__(self, col: anki.storage._Collection, card: anki.cards.Card), see here. So CardStats.__init__.py assumes that self.col is not a None type but a collection object which explains the error line 28.

AnKingMed commented 4 years ago

I deleted the advanced browser add-on rather than toggling and it seems to have resolved this. Must be only an issue with Advanced Browser. Sorry about that.

ijgnd commented 4 years ago

I forgot: Thanks. Better one report (that includes all the details like yours) too many than one to few.