Commit 82460467 authored by Christopher R. Gabriel's avatar Christopher R. Gabriel
Browse files

syntax fixing

parent ef6e4c2f
......@@ -13,9 +13,7 @@ def invoke(script, *args):
hookscript = os.path.join(conf_hookdir, script)
if not os.path.exists(hookscript):
raise RuntimeError("Hook script %s does not exist" % hookscript)
#print >>sys.stderr, "Running", " ".join((hookscript,) + args)
proc = Popen([hookscript] + list(map(str, args)), stdout=open("/dev/null"), stderr=PIPE)
stdout, stderr = proc.communicate()
print >>sys.stderr, stderr
if proc.returncode != 0:
raise RuntimeError(str(stderr))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment