From 7b77e0a48d265f3ac56017ee22be4a97d779b063 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Thu, 2 Oct 2014 15:01:46 -0400 Subject: [PATCH] 4042: fix bad syntax --- crunch_scripts/run-command | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crunch_scripts/run-command b/crunch_scripts/run-command index 3b58186171..1e6f3a7495 100755 --- a/crunch_scripts/run-command +++ b/crunch_scripts/run-command @@ -131,7 +131,12 @@ def get_items(p, value): if "extract" in value and "regex" in value: pattern = re.compile(value["regex"]) items = get_items(p, value["group"]) - return [p.groups() for i in items if p = pattern.match(i)] + r = [] + for i in items: + p = pattern.match(i) + if p: + r.append(p.groups()) + return r if isinstance(value, list): return expand_list(p, value) -- 2.30.2