Skip to content
Permalink
Browse files

auto: python 3-friendly build output

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 17, 2015
1 parent fe2195e commit f53a1c677b75de3144844ca9b92714ebd73a69c2
Showing with 4 additions and 4 deletions.
  1. +4 −4 nikola/plugins/command/auto/__init__.py
@@ -250,13 +250,13 @@ def __call__(self, environ, start_response):
def do_rebuild(self, event):
self.logger.info('REBUILDING SITE (from {0})'.format(event.src_path))
p = subprocess.Popen(self.cmd_arguments, stderr=subprocess.PIPE)
error = p.stderr.read()
errord = error.decode('utf-8')
if p.wait() != 0:
error = p.stderr.read()
self.logger.error(error)
self.logger.error(errord)
error_signal.send(error=error)
else:
error = p.stderr.read()
print(error)
print(errord)

def do_refresh(self, event):
self.logger.info('REFRESHING: {0}'.format(event.src_path))

0 comments on commit f53a1c6

Please sign in to comment.
You can’t perform that action at this time.