thoth icon indicating copy to clipboard operation
thoth copied to clipboard

Python client formatter crashing

Open MartinPaulEve opened this issue 1 year ago • 1 comments

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.

MartinPaulEve avatar Oct 28 '23 11:10 MartinPaulEve

Is this the same issue as https://github.com/thoth-pub/thoth-client/issues/21?

rhigman avatar Oct 31 '23 10:10 rhigman