Mercurial > piecrust2
changeset 946:8ca228956cc6
publish: Fix shell publisher crash, log `stderr` too.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 05 Oct 2017 00:24:44 -0700 |
parents | b7418025797f |
children | a85b2827ba1a |
files | piecrust/publishing/shell.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/publishing/shell.py Thu Oct 05 00:24:12 2017 -0700 +++ b/piecrust/publishing/shell.py Thu Oct 05 00:24:44 2017 -0700 @@ -30,7 +30,8 @@ proc = subprocess.Popen( args, cwd=self.app.root_dir, bufsize=0, - stdout=subprocess.PIPE) + stdout=subprocess.PIPE, + stderr=subprocess.STDOUT) logger.debug("Running publishing monitor for PID %d" % proc.pid) thread = _PublishThread(proc) @@ -72,7 +73,7 @@ PUBLISHER_NAME = 'shell' def _getCommandArgs(self, ctx): - target_cmd = self.getConfigValue('command') + target_cmd = self.config.get('command') if not target_cmd: raise Exception("No command specified for publish target: %s" % self.target)