Skip to content

Commit c57cecd

Browse files
committed
fixup! Adds optional interval support for all prune retention flags
1 parent 073f3e3 commit c57cecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/borg/archiver/prune_cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class PruneMixIn:
149149
def do_prune(self, args, repository, manifest):
150150
"""Prune archives according to specified rules."""
151151
if all(
152-
# Needs explicit None-check as interval arg may be 0 (Falsey)
152+
# Needs explicit None-check to cover Falsey timedelta(0)
153153
e is None
154154
for e in (
155155
args.keep,

0 commit comments

Comments
 (0)