Fix format character.
[cdist.git] / cdist
diff --git a/cdist b/cdist
index 7efa7ea0fc3a884765f8905190a9b51358ba2c8f..0aa4fd2d9587fae1832c81571f4aff1b4796f6e2 100755 (executable)
--- 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 (%s)' % (c, e))
 
 def command_and_read(c):
     log_normal(c)