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

type definition for _ErrorLog missing #91

Open
svniemeijer opened this issue Aug 10, 2023 · 0 comments
Open

type definition for _ErrorLog missing #91

svniemeijer opened this issue Aug 10, 2023 · 0 comments

Comments

@svniemeijer
Copy link

I am using an error reporting approach similar to Example #1 on this page:

        except etree.DocumentInvalid as exc:
            for error in exc.error_log:
                logger.error(f"{error.filename}:{error.line}: {error.message}")

However, this gives:

error: "_ErrorLog" has no attribute "__iter__" (not iterable)  [attr-defined]
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