mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Return str from hooks.execute, not bytes
This commit is contained in:
+2
-1
@@ -84,7 +84,8 @@ def execute(shell_cmd):
|
|||||||
|
|
||||||
:returns: `tuple` (`str` stderr, `str` stdout)"""
|
:returns: `tuple` (`str` stderr, `str` stdout)"""
|
||||||
|
|
||||||
cmd = Popen(shell_cmd, shell=True, stdout=PIPE, stderr=PIPE)
|
cmd = Popen(shell_cmd, shell=True, stdout=PIPE,
|
||||||
|
stderr=PIPE, universal_newlines=True)
|
||||||
out, err = cmd.communicate()
|
out, err = cmd.communicate()
|
||||||
if cmd.returncode != 0:
|
if cmd.returncode != 0:
|
||||||
logger.error('Hook command "%s" returned error code %d',
|
logger.error('Hook command "%s" returned error code %d',
|
||||||
|
|||||||
Reference in New Issue
Block a user