#2408 web: better error message for invalid build
Merged 2 years ago by tkopecek. Opened 2 years ago by tkopecek.
tkopecek/koji issue1545  into  master

file modified
+4 -1
@@ -1173,7 +1173,10 @@ 

  

      buildID = int(buildID)

  

-     build = server.getBuild(buildID)

+     try:

+         build = server.getBuild(buildID, strict=True)

+     except koji.GenericError:

+         raise koji.GenericError("Invalid build ID: %i" % buildID)

  

      values['title'] = koji.buildLabel(build) + ' | Build Info'

  

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

2 years ago

Commit 2d7386f fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago