From ddc18a6223d050076a1648ea826fddc04f5a8504 Mon Sep 17 00:00:00 2001 From: boyska Date: Mon, 25 Dec 2023 15:31:24 +0100 Subject: [PATCH] fix interpolation --- sergio.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sergio.py b/sergio.py index cfb9c68..a3b01d8 100755 --- a/sergio.py +++ b/sergio.py @@ -269,7 +269,7 @@ def main_get(args, pira: Pira): try: out = pira.read_variable(args.variable) except UnknownCommandError: - print("Variable not found: {args.variable}", file=sys.stderr) + print(f"Variable not found: {args.variable}", file=sys.stderr) sys.exit(1) output(args, dict(variable=args.variable, value=out)) @@ -278,7 +278,7 @@ def main_set(args, pira: Pira): try: pira.set_variable(args.variable, args.value, save=args.save) except UnknownCommandError: - print("Variable not found: {args.variable}", file=sys.stderr) + print(f"Variable not found: {args.variable}", file=sys.stderr) sys.exit(1) @@ -286,7 +286,7 @@ def main_save(args, pira: Pira): try: pira.save_variable(args.variable) except UnknownCommandError: - print("Variable not found: {args.variable}", file=sys.stderr) + print(f"Variable not found: {args.variable}", file=sys.stderr) sys.exit(1)