Fix JSON conversion log

This commit is contained in:
deajan 2024-05-29 17:59:08 +02:00
parent 904ed94e8b
commit 7cd17b9ff6

View file

@ -197,7 +197,7 @@ def restic_json_to_prometheus(
try:
restic_json = json.loads(restic_json)
except (json.JSONDecodeError, TypeError) as exc:
logger.error("Cannot decode JSON from restic data: {exc}")
logger.error(f"Cannot decode JSON from restic data: {exc}")
restic_json = {}
prom_metrics = []