summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/scriptutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py
index 1005dd495a..b6217dc059 100644
--- a/scripts/lib/scriptutils.py
+++ b/scripts/lib/scriptutils.py
@@ -216,8 +216,8 @@ def run_editor(fn):
216 editor = os.getenv('VISUAL', os.getenv('EDITOR', 'vi')) 216 editor = os.getenv('VISUAL', os.getenv('EDITOR', 'vi'))
217 try: 217 try:
218 return subprocess.check_call('%s %s' % (editor, params), shell=True) 218 return subprocess.check_call('%s %s' % (editor, params), shell=True)
219 except OSError as exc: 219 except subprocess.CalledProcessError as exc:
220 logger.error("Execution of editor '%s' failed: %s", editor, exc) 220 logger.error("Execution of '%s' failed: %s" % (editor, exc))
221 return 1 221 return 1
222 222
223def is_src_url(param): 223def is_src_url(param):