1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-06-26 22:00:54 +00:00

Fixed PLW0120 (useless-else-on-loop): else clause on loop without a break statement; remove the else and dedent its contents

This commit is contained in:
Teal Dulcet 2025-06-18 04:19:08 -07:00
parent 68fd3dc535
commit 3a1280d292

View File

@ -178,9 +178,7 @@ def should_force_full(config, env):
if dateutil.parser.parse(bak["date"]) + datetime.timedelta(days=config["min_age_in_days"]*10+1) < datetime.datetime.now(dateutil.tz.tzlocal()):
return True
return False
else:
# If we got here there are no (full) backups, so make one.
# (I love for/else blocks. Here it's just to show off.)
return True
def get_passphrase(env):