mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-09 16:37:23 +01:00
Fixed PIE810 (multiple-starts-ends-with): Call startswith once with a tuple
This commit is contained in:
committed by
Joshua Tauberer
parent
dd61844ced
commit
555ecc1ebb
@@ -69,7 +69,7 @@ def backup_status(env):
|
||||
# destination for the backups or the last backup job terminated unexpectedly.
|
||||
raise Exception("Something is wrong with the backup: " + collection_status)
|
||||
for line in collection_status.split('\n'):
|
||||
if line.startswith(" full") or line.startswith(" inc"):
|
||||
if line.startswith((" full", " inc")):
|
||||
backup = parse_line(line)
|
||||
backups[backup["date"]] = backup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user