Skip to content

Commit 5eb8beb

Browse files
Trying to identify a bug...
1 parent 25ed328 commit 5eb8beb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

webhooks.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,20 @@ def index():
105105
ran = {}
106106
for s in scripts:
107107
if isfile(s) and access(s, X_OK):
108-
cmd = Popen(
109-
shsplit("{} '{}'".format(s, dumps(payload))),
108+
109+
cmd = "{} '{}'".format(s, dumps(payload))
110+
logging.error(cmd)
111+
112+
proc = Popen(
113+
shsplit(cmd),
110114
shell=True,
111115
stdout=PIPE, stderr=PIPE
112116
)
113-
stdout, stderr = cmd.communicate()
117+
stdout, stderr = proc.communicate()
114118

115119
if not silent:
116120
ran[basename(s)] = {
117-
'returncode': cmd.returncode,
121+
'returncode': proc.returncode,
118122
'stdout': stdout,
119123
'stderr': stderr,
120124
}

0 commit comments

Comments
 (0)