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

Doubly-nested errors when using context manager #5

Open
brendan-ward opened this issue Jun 24, 2022 · 0 comments
Open

Doubly-nested errors when using context manager #5

brendan-ward opened this issue Jun 24, 2022 · 0 comments

Comments

@brendan-ward
Copy link
Owner

When using the context manager with Map(...) as map:, if there is an error in setting map properties or rendering map, the errors get raised twice:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File <file>, line 296, in <module>
    png = map.renderPNG()
TypeError: __exit__(): incompatible function arguments. The following argument types are supported:
    1. (self: pymgl._pymgl.Map, arg0: capsule, arg1: capsule, arg2: capsule) -> None
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