#644 CLI fails on plugins without docstrings
Closed: Fixed 6 years ago Opened 6 years ago by tkopecek.

when plugin doesn't have proper docstring, (at least) koji help will fail.

# koji --debug help
2017-10-17 13:10:00,337 [DEBUG] koji: Opening new requests session
Available commands:

admin commands:
    add-external-repo         Create an external repo and/or add one to a tag
    add-group                 Add a group to a tag
    add-group-pkg             Add a package to a group's package listing
    add-group-req             Add a group to a group's required list
    add-host                  Add a host
    add-host-to-channel       Add a host to a channel
    add-pkg                   Add a package to the listing for tag
    add-tag                   Add a new tag to the database
    add-tag-inheritance       Add to a tag's inheritance
    add-target                Create a new build target
    add-user                  Add a user
    add-volume                Add a new storage volume
    assign-task               Assign a task to a host
    block-group               Block group in tag
    block-group-pkg           Block a package from a group's package listing
    block-group-req           Block a group's requirement listing
    block-pkg                 Block a package in the listing for tag
    clone-tag                 Duplicate the contents of one tag onto another tag
 Traceback (most recent call last):
    File "/usr/bin/brew", line 165, in <module>
      rv = vars(clikoji)[command].__call__(options, session, args)
    File "/usr/bin/koji", line 228, in handle_help
      list_commands()
   File "/usr/bin/koji", line 279, in list_commands
      if desc.startswith('[%s] ' % category):
  AttributeError: 'NoneType' object has no attribute 'startswith'

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

6 years ago

Commit 6420228 relates to this ticket

Login to comment on this ticket.

Metadata