Skip to content

Commit

Permalink
auto: python 3-friendly build output
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 17, 2015
1 parent fe2195e commit f53a1c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nikola/plugins/command/auto/__init__.py
Expand Up @@ -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))
Expand Down

0 comments on commit f53a1c6

Please sign in to comment.