unoneline

This commit is contained in:
Peter Eckersley
2015-11-21 11:23:53 -08:00
parent d5e92289fc
commit 6a50a98ebe
+1 -2
View File
@@ -1062,8 +1062,7 @@ class DomainFlagProcessor(argparse.Action): # pylint: disable=missing-docstring
Process a new -d flag, helping the webroot plugin construct a map of
{domain : webrootpath} if -w / --webroot-path is in use
"""
if not config.domains:
config.domains = []
if not config.domains: config.domains = []
new_domains = [d.strip() for d in domain_arg.split(",")
if d not in config.domains]
config.domains.extend(new_domains)