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

Prevent infinite loop while annotating and an unknown type is encountered. #14

Open
jamie-pate opened this issue Jun 4, 2016 · 0 comments

Comments

@jamie-pate
Copy link
Owner

            try:
                types = try_get_types(dereference)

        if is_array and arraydecl is None:
            types['member'] = types['json']
            types['json'] = 'json_type_array'
        return (types, arraydecl)
    except ExpansionError as err:
        # try again in case it's an array
        if not is_array:
            dereference -= 1
            is_array = True
            if initial_err is None:
                initial_err = err
                initial_tb = sys.exc_info()[2]
-                raise err

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