-
Notifications
You must be signed in to change notification settings - Fork 44
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
OpenFont() misleading feedback #627
Comments
You could add an |
wouldn't this check shadow this option |
Ah yes, you're right. Then: what kind of font objects are accepted there? Probably cls.wrapClass? Hmmm, that may be too strict, as it seems it may accept font-like objects (perhaps Dumb idea: perhaps check for |
|
Hi all!
Yesterday I was trying to open a specific ufo sitting in a folder full of ufos using fontParts.shell, using some code like this:
and I received the following traceback
This is due to the fact that I forgot to unwrap the regular style path from the list, so the correct code would be
I also understand that this behaviour is intended, as a Font-like object might be used from the API. The interpreter is complaining about the fact that a list does not have an info attribute. Nevertheless, I would imagine this kind of traceback to be a bit misleading for beginners (it took a while to me to understand that I was not dealing with a corrupt ufo). Could the error message be improved somehow?
cc @typemytype
The text was updated successfully, but these errors were encountered: