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

Python client formatter crashing #518

Open
MartinPaulEve opened this issue Oct 28, 2023 · 1 comment
Open

Python client formatter crashing #518

MartinPaulEve opened this issue Oct 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@MartinPaulEve
Copy link

Describe the bug
Using the latest python client:

for contribution in work.contributions:
    contributor = contribution.contributor

    for affil in contribution.affiliations:
        print(affil)

gives

File "/home/martin/.virtualenvs/intrepid/lib/python3.10/site-packages/munch/init.py", line 108, in getattr
raise AttributeError(k)
AttributeError: institutionName. Did you mean: 'institution'?

To Reproduce
Steps to reproduce the behavior:

Attempt to access a contribution.affiliations collection's members.

Expected behavior
Affil object is found

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@rhigman
Copy link
Member

rhigman commented Oct 31, 2023

Is this the same issue as thoth-pub/thoth-client#21?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants