Format in PowerlineLogger._log, not in pl.exception arguments

This commit is contained in:
ZyX 2014-02-16 03:36:02 +04:00
parent 08a2e75241
commit 70a9da61f4
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ def run_cmd(pl, cmd, stdin=None):
try:
p = Popen(cmd, stdout=PIPE, stdin=PIPE)
except OSError as e:
pl.exception('Could not execute command ({0}): {1}'.format(e, cmd))
pl.exception('Could not execute command ({0}): {1}', e, cmd)
return None
else:
stdout, err = p.communicate(stdin)