From 9ece08d361b8440a168fe83c82b297052c3df48e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 25 Nov 2020 12:30:12 +0100 Subject: [PATCH 1/1] Maybe we can't use fstrings on all platforms yet. --- cdist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cdist b/cdist index 7efa7ea..b422c36 100755 --- a/cdist +++ b/cdist @@ -259,9 +259,9 @@ def command(c): try: r = subprocess.run(c, shell=True) if r.returncode != 0: - raise Error(f'command {c} failed ({r.returncode})') + raise Error('command %s failed (%d)' % (c, r.returncode)) except Exception as e: - raise Error(f'command {c} failed ({e})') + raise Error('command %s failed (%d)' % (c, e)) def command_and_read(c): log_normal(c) -- 2.30.2