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

KeyError: 'releases' for pypi backend #1387

Closed
Zlopez opened this issue Jun 21, 2022 · 0 comments · Fixed by #1388
Closed

KeyError: 'releases' for pypi backend #1387

Zlopez opened this issue Jun 21, 2022 · 0 comments · Fixed by #1388
Labels

Comments

@Zlopez
Copy link
Contributor

Zlopez commented Jun 21, 2022

The unyanked versions from pypi introduced a new error:

[2022-06-20 17:22:36,608 anitya ERROR] 'releases'
Traceback (most recent call last):
  File "/usr/local/bin/check_service.py", line 223, in run
    future.result()
  File "/usr/lib64/python3.10/concurrent/futures/_base.py", line 439, in result
    return self.__get_result()
  File "/usr/lib64/python3.10/concurrent/futures/_base.py", line 391, in __get_result
    raise self._exception
  File "/usr/lib64/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/bin/check_service.py", line 106, in update_project
    utilities.check_project_release(project, session)
  File "/usr/local/lib/python3.10/site-packages/anitya/lib/utilities.py", line 86, in check_project_release
    versions_prefix = backend.get_versions(project)
  File "/usr/local/lib/python3.10/site-packages/anitya/lib/backends/pypi.py", line 109, in get_versions
    for version in data["releases"]:
KeyError: 'releases'
Zlopez added a commit to Zlopez/anitya that referenced this issue Jun 21, 2022
Fixes fedora-infra#1387

Signed-off-by: Michal Konečný <[email protected]>
Zlopez added a commit that referenced this issue Jun 21, 2022
Fixes #1387

Signed-off-by: Michal Konečný <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant