Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

RuntimeError: generator raised StopIteration #1

Open
fluxrider opened this issue Apr 19, 2021 · 1 comment
Open

RuntimeError: generator raised StopIteration #1

fluxrider opened this issue Apr 19, 2021 · 1 comment

Comments

@fluxrider
Copy link

raise StopIteration

Hello, first time user of bakefont3 here. I'm running into a StopIteration error when running the example. It looks like something changed in more recent versions of python in the last 3 years, that broke your code. There seems to be a very simple fix, which works for me anyway, that I got from this thread: https://stackoverflow.com/questions/37707187/python-pep479-change-stopiteration-handling-inside-generators

In a nutshell, replace 'raise StopIteration' with a simple 'return'.

I'm using Python 3.9.3 on Arch Linux Arm.

Cheers,

@golightlyb
Copy link
Owner

Thank you very much for reporting this with a fix! I will update the repo shortly.

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

No branches or pull requests

2 participants