#103 Fix KeyError in flag_commit_build
Closed 3 years ago by zlopez. Opened 3 years ago by zlopez.
fedora-infra/ zlopez/toddlers 102  into  main

@@ -61,6 +61,10 @@ 

  

          msg = message.body

  

+         # Check if the owner field is even available

+         if not "owner" in msg:

+             return

+ 

          if msg["owner"] == "containerbuild":

              _log.info("Skipping container build")

              return

This issue was encountered on staging, let's just skip the message if the field
is missing.

Signed-off-by: Michal Konečný mkonecny@redhat.com

Pull-Request has been closed by zlopez

3 years ago
Metadata