mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-01-24 12:47:05 +00:00
Fixed PLR6104 (non-augmented-assignment): Use +=
to perform an augmented assignment directly
This commit is contained in:
parent
f4cef66d93
commit
d09ca4561a
@ -463,7 +463,7 @@ def list_target_files(config):
|
|||||||
|
|
||||||
target_path = target.path
|
target_path = target.path
|
||||||
if not target_path.endswith('/'):
|
if not target_path.endswith('/'):
|
||||||
target_path = target_path + '/'
|
target_path += "/"
|
||||||
if target_path.startswith('/'):
|
if target_path.startswith('/'):
|
||||||
target_path = target_path[1:]
|
target_path = target_path[1:]
|
||||||
|
|
||||||
|
@ -918,7 +918,7 @@ def set_custom_dns_record(qname, rtype, value, action, env):
|
|||||||
|
|
||||||
# ensure value has a trailing dot
|
# ensure value has a trailing dot
|
||||||
if not value.endswith("."):
|
if not value.endswith("."):
|
||||||
value = value + "."
|
value += "."
|
||||||
|
|
||||||
if not re.search(DOMAIN_RE, value):
|
if not re.search(DOMAIN_RE, value):
|
||||||
msg = "Invalid value."
|
msg = "Invalid value."
|
||||||
|
Loading…
Reference in New Issue
Block a user