mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-23 14:04:43 +08:00
Fix JSON conversion log
This commit is contained in:
parent
904ed94e8b
commit
7cd17b9ff6
1 changed files with 1 additions and 1 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue