mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-17 02:16:40 +08:00
Don't throw an error on missing metrics size
This commit is contained in:
parent
a63437f18b
commit
3f1dfb0625
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ def restic_json_to_prometheus(
|
|||
backup_too_small = False
|
||||
if minimum_backup_size_error:
|
||||
try:
|
||||
if restic_json["total_bytes_processed"] < int(
|
||||
if restic_json["total_bytes_processed"] and restic_json["total_bytes_processed"] < int(
|
||||
BytesConverter(str(minimum_backup_size_error).replace(" ", "")).bytes
|
||||
):
|
||||
backup_too_small = True
|
||||
|
|
Loading…
Add table
Reference in a new issue