lovac42 / ReMemorize

Addon: reschedule current reviewer card and siblings
GNU General Public License v3.0
13 stars 2 forks source link

Crashing with 1.1 update Anki 2.1 #12

Closed Z1839 closed 5 years ago

Z1839 commented 5 years ago

I'm on Anki 2.1, and just installed the latest version of 2.1 and the Rememorize Addon. When I try to reschedule (Command+ M). I get this error:

Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site. Debug info: Anki 2.1.9 (ae67c976) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3 Platform: Mac 10.14.3 Flags: frz=True ao=True sv=1 Add-ons possibly involved: load balancer, ReMemorize Rescheduler with sibling and logging v110

Caught exception: File "/Users/O73190/Library/Application Support/Anki2/addons21/323586997/rememorize.py", line 167, in ask tipTxt=self.evalDays(c,days) File "/Users/O73190/Library/Application Support/Anki2/addons21/323586997/rememorize.py", line 178, in evalDays self.reschedCards(c, days) File "/Users/O73190/Library/Application Support/Anki2/addons21/323586997/rememorize.py", line 111, in reschedCards customReschedCards(cids,days,days,log,fuzz) File "/Users/O73190/Library/Application Support/Anki2/addons21/323586997/utils.py", line 36, in customReschedCards r=adjInterval(imin,imax,lbal) File "/Users/O73190/Library/Application Support/Anki2/addons21/323586997/utils.py", line 121, in adjInterval return mw.col.sched._adjRevIvl(None,imin) File "/Users/O73190/Library/Application Support/Anki2/addons21/1417170896/loadbalancer.py", line 48, in NEW_adjRevIvl conf = self.col.decks.confForDid(card.did) <class 'AttributeError'>: 'NoneType' object has no attribute 'did'

lovac42 commented 5 years ago

Thanks for reporting, I just pushed an update that fixes this issue.