#765 Pungi tracebacks with "KeyError: 'artifacts'" when module has an empty list of rpms
Closed: Fixed Opened by tmlcoch.

tmlcoch: lsedlar: the pungi error is result of no rpms being here: https://pdc.fedoraproject.org/rest_api/v1/unreleasedvariants/?koji_tag=module-38e42768bb6a0a8d

Traceback (most recent call last):
  File "/usr/bin/pungi-koji", line 459, in <module>
    main()
  File "/usr/bin/pungi-koji", line 246, in main
    run_compose(compose, create_latest_link=create_latest_link, latest_link_status=latest_link_status)
  File "/usr/bin/pungi-koji", line 373, in run_compose
    createrepo_phase.stop()
  File "/usr/lib/python2.7/site-packages/pungi/phases/base.py", line 105, in stop
    self.pool.stop()
  File "/usr/lib/python2.7/site-packages/kobo/threads.py", line 65, in run
    self.process(item, num)
  File "/usr/lib/python2.7/site-packages/pungi/phases/createrepo.py", line 214, in process
    create_variant_repo(compose, arch, variant, pkg_type=pkg_type)
  File "/usr/lib/python2.7/site-packages/pungi/phases/createrepo.py", line 193, in create_variant_repo
    rpm_nevra for rpm_nevra in repo_mmd["data"]["artifacts"]["rpms"]
KeyError: 'artifacts'

cc @jkaluza

This should be fixed by #766.

Metadata Update from @lsedlar:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata Update from @lsedlar:
- Issue tagged with: 4.1.20

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/pungi/pungi/issues/765

Please continue any further discussion there.

Metadata