# HG changeset patch # User Ludovic Chabant # Date 1507188284 25200 # Node ID 8ca228956cc66caaa7f257b891e7a129897e7cda # Parent b7418025797f40aa7922310c0ac44e5b37c838ca publish: Fix shell publisher crash, log `stderr` too. diff -r b7418025797f -r 8ca228956cc6 piecrust/publishing/shell.py --- 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)