Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when generating with empty field name #1

Open
epistularum opened this issue Nov 27, 2023 · 0 comments
Open

Crash when generating with empty field name #1

epistularum opened this issue Nov 27, 2023 · 0 comments

Comments

@epistularum
Copy link

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 to the add-on author.
Debug info:
Anki 23.10.1 (fac9e0ee) Python 3.11.6 Qt 6.6.0 PyQt 6.6.0
Platform: Linux-6.6.2-arch1-1-x86_64-with-glibc2.38
Flags: frz=False ao=True sv=3
Add-ons, last update check: 2023-11-22 21:24:37
Add-ons possibly involved: ⁨Kanji Grid 2310⁩

Caught exception:
Traceback (most recent call last):
  File "/home/arch/.local/share/Anki2/addons21/1469765093/__init__.py", line 457, in setup
    self.makegrid(config)
  File "/home/arch/.local/share/Anki2/addons21/1469765093/__init__.py", line 362, in makegrid
    self.displaygrid(config, units, timeNow)
  File "/home/arch/.local/share/Anki2/addons21/1469765093/__init__.py", line 280, in displaygrid
    self.generate(config, units, timeNow)
  File "/home/arch/.local/share/Anki2/addons21/1469765093/__init__.py", line 256, in generate
    self.html += "<h4 style=\"color:#888;\">%d of %d - %0.2f%%</h4>\n" % (n, gc, n*100.0/gc)
                                                                                 ~~~~~~~^~~
ZeroDivisionError: float division by zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant