#365 handle buildroots with state=None
Merged 7 years ago by mikem. Opened 7 years ago by mikem.
mikem/koji no-buildroot-state  into  master

file modified
+2
@@ -379,6 +379,8 @@ 

  

  def brStateName(stateID):

      """Convert a numeric buildroot state into a readable name."""

+     if stateID is None:

+         return '-'

      return koji.BR_STATES[stateID].lower()

  

  

If content generators are in use, they will create buildroots that have no
state. This change prevents this function from erroring in that case.

rebased

7 years ago

Commit 5a0b1d0 fixes this pull-request

Pull-Request has been merged by mikem@redhat.com

7 years ago