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

RecursionError in LazyProxy class instead of AttributeError, when lazy function raise AttributeError #723

Closed
nikifkon-old opened this issue Jul 31, 2020 · 0 comments · Fixed by #724

Comments

@nikifkon-old
Copy link
Contributor

Overview Description

When babel.support.LazyProxy gets function that raise AttributeError, RecursionError raises instead of it

Steps to Reproduce

from babel.support import LazyProxy 
def func(): 
    raise AttributeError("test") 
LazyProxy(func).value

Actual Results

RecursionError: maximum recursion depth exceeded while calling a Python object

Expected Results

AttributeError: test

Reproducibility

Always

Additional Information:

nikifkon-old pushed a commit to nikifkon-old/babel that referenced this issue Jul 31, 2020
@akx akx closed this as completed in #724 Sep 30, 2020
akx added a commit that referenced this issue Sep 30, 2020
Fixes #723

Co-authored-by: Aarni Koskela <akx@iki.fi>
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

Successfully merging a pull request may close this issue.

1 participant