fix interpolation
This commit is contained in:
parent
ee70ecb7bf
commit
ddc18a6223
1 changed files with 3 additions and 3 deletions
|
@ -269,7 +269,7 @@ def main_get(args, pira: Pira):
|
||||||
try:
|
try:
|
||||||
out = pira.read_variable(args.variable)
|
out = pira.read_variable(args.variable)
|
||||||
except UnknownCommandError:
|
except UnknownCommandError:
|
||||||
print("Variable not found: {args.variable}", file=sys.stderr)
|
print(f"Variable not found: {args.variable}", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
output(args, dict(variable=args.variable, value=out))
|
output(args, dict(variable=args.variable, value=out))
|
||||||
|
|
||||||
|
@ -278,7 +278,7 @@ def main_set(args, pira: Pira):
|
||||||
try:
|
try:
|
||||||
pira.set_variable(args.variable, args.value, save=args.save)
|
pira.set_variable(args.variable, args.value, save=args.save)
|
||||||
except UnknownCommandError:
|
except UnknownCommandError:
|
||||||
print("Variable not found: {args.variable}", file=sys.stderr)
|
print(f"Variable not found: {args.variable}", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ def main_save(args, pira: Pira):
|
||||||
try:
|
try:
|
||||||
pira.save_variable(args.variable)
|
pira.save_variable(args.variable)
|
||||||
except UnknownCommandError:
|
except UnknownCommandError:
|
||||||
print("Variable not found: {args.variable}", file=sys.stderr)
|
print(f"Variable not found: {args.variable}", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue