From cbc9f33954927aaa752f3bed03d9be010d991108 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Wed, 10 Aug 2016 14:06:43 -0400 Subject: [PATCH] Apply a fix from our demo-readiness efforts.. --- rida/scheduler/handlers/components.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rida/scheduler/handlers/components.py b/rida/scheduler/handlers/components.py index ea3fbaae..d3a5f5fa 100644 --- a/rida/scheduler/handlers/components.py +++ b/rida/scheduler/handlers/components.py @@ -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