mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-03-09 16:37:23 +01:00
Fixed PLR6201 (literal-membership): Use a set literal when testing for membership
This commit is contained in:
committed by
Joshua Tauberer
parent
cb922ec286
commit
49124cc9ca
@@ -556,7 +556,7 @@ def backup_set_custom(env, target, target_user, target_pass, min_age):
|
||||
|
||||
# Validate.
|
||||
try:
|
||||
if config["target"] not in ("off", "local"):
|
||||
if config["target"] not in {"off", "local"}:
|
||||
# these aren't supported by the following function, which expects a full url in the target key,
|
||||
# which is what is there except when loading the config prior to saving
|
||||
list_target_files(config)
|
||||
|
||||
Reference in New Issue
Block a user