From 70a9da61f49b3f9a59cf0717daf23acb638851c1 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 16 Feb 2014 03:36:02 +0400 Subject: [PATCH] Format in PowerlineLogger._log, not in pl.exception arguments --- powerline/lib/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/lib/shell.py b/powerline/lib/shell.py index ef6cec41..121cea58 100644 --- a/powerline/lib/shell.py +++ b/powerline/lib/shell.py @@ -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)