mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 04:59:59 +02:00
Review changes and linting
This commit is contained in:
parent
7d8b8fa755
commit
8eb7235ff1
1 changed files with 4 additions and 2 deletions
|
@ -99,8 +99,10 @@ class Command(BaseCommand):
|
||||||
skip_existing_portfolios = options.get("skip_existing_portfolios")
|
skip_existing_portfolios = options.get("skip_existing_portfolios")
|
||||||
|
|
||||||
if not both:
|
if not both:
|
||||||
if not parse_requests and not parse_domains:
|
if not (parse_requests or parse_domains or add_managers):
|
||||||
raise CommandError("You must specify at least one of --parse_requests or --parse_domains.")
|
raise CommandError(
|
||||||
|
"You must specify at least one of --parse_requests, --parse_domains, or --add_managers."
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
if parse_requests or parse_domains:
|
if parse_requests or parse_domains:
|
||||||
raise CommandError("You cannot pass --parse_requests or --parse_domains when passing --both.")
|
raise CommandError("You cannot pass --parse_requests or --parse_domains when passing --both.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue