Browse Source

backup: fix ignoring of harmless borg warnings

master
Jim Paris 2 years ago
parent
commit
e7b0320c9f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backup.py

+ 1
- 1
backup.py View File

@@ -377,7 +377,7 @@ def main(argv: list[str]):
backup.log('E', f"borg exited with signal {-ret}")
elif ret == 2 or borg_saw_errors:
backup.log('E', f"borg exited with errors (ret={ret})")
elif ret == 1 or borg_saw_warnings:
elif ret == 1 and borg_saw_warnings:
backup.log('W', f"borg exited with warnings (ret={ret})")
else:
backup.log('E', f"borg exited with unknown error code {ret}")


Loading…
Cancel
Save