Skip to content

Commit a037231

Browse files
Minor style change in decoding stderr and stdout.
1 parent 508b69f commit a037231

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

webhooks.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,11 @@ def index():
168168
stdout=PIPE, stderr=PIPE
169169
)
170170
stdout, stderr = proc.communicate()
171-
stout = stout.decode('utf-8')
172-
stderr = stderr.decode('utf-8')
173171

174172
ran[basename(s)] = {
175173
'returncode': proc.returncode,
176-
'stdout': stdout,
177-
'stderr': stderr,
174+
'stdout': stdout.decode('utf-8'),
175+
'stderr': stderr.decode('utf-8'),
178176
}
179177

180178
# Log errors if a hook failed

0 commit comments

Comments
 (0)