mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-10 16:44:59 +08:00
Apply a fix from our demo-readiness efforts..
This commit is contained in:
@@ -40,7 +40,11 @@ def _finalize(config, session, msg, state):
|
||||
|
||||
# First, find our ModuleBuild associated with this repo, if any.
|
||||
component_build = models.ComponentBuild.from_component_event(session, msg)
|
||||
nvr = "{name}-{version}-{release}".format(**msg['msg'])
|
||||
try:
|
||||
nvr = "{name}-{version}-{release}".format(**msg['msg'])
|
||||
except KeyError:
|
||||
nvr = None
|
||||
|
||||
if not component_build:
|
||||
log.debug("We have no record of %s" % nvr)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user