log tweak

This commit is contained in:
mike 2024-04-21 02:07:40 -07:00
parent e4d5e1b595
commit cd14dc6158

View File

@ -274,9 +274,7 @@ class BackupRotator:
if detection == "file": if detection == "file":
ctime = os.path.getctime(item) ctime = os.path.getctime(item)
else: else:
raise AssertionError("Invalid value for \"date-detection\"; Should be one of {file}: {}".format( raise AssertionError(f"Invalid value for \"date-detection\"; Should be one of [file]: {detection}")
detection
))
return ctime return ctime