#2628 cli: rpminfo errors if build is deleted
Closed: Fixed by tkopecek. Opened by mikem.

The rpminfo command calls getRPMHeaders which depends on reading the actual rpm file. For a deleted build the file is missing and we see the following

Traceback (most recent call last):
  File "/usr/bin/brew", line 339, in <module>
    rv = locals()[command].__call__(options, session, args)
  File "/usr/lib/python3.8/site-packages/koji_cli/commands.py", line 3172, in anon_handle_rpminfo
    print("License: %(license)s" % headers)
KeyError: 'license'

I think the most correct fix is to make the cli tolerant of this variation in return data.

Metadata Update from @mikem:
- Custom field Size adjusted to None

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.25

PR sent: https://pagure.io/koji/pull-request/2692

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.24.1 (was: 1.25)

Metadata Update from @jcupova:
- Issue tagged with: testing-ready

Commit eb638ed9 fixes this issue

Metadata Update from @jcupova:
- Issue tagged with: testing-done

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

Please continue any further discussion there.

Metadata