Review changes and linting

This commit is contained in:
matthewswspence 2025-02-06 12:40:41 -06:00
parent 7d8b8fa755
commit 8eb7235ff1
No known key found for this signature in database
GPG key ID: FB458202A7852BA4

View file

@ -99,8 +99,10 @@ class Command(BaseCommand):
skip_existing_portfolios = options.get("skip_existing_portfolios")
if not both:
if not parse_requests and not parse_domains:
raise CommandError("You must specify at least one of --parse_requests or --parse_domains.")
if not (parse_requests or parse_domains or add_managers):
raise CommandError(
"You must specify at least one of --parse_requests, --parse_domains, or --add_managers."
)
else:
if parse_requests or parse_domains:
raise CommandError("You cannot pass --parse_requests or --parse_domains when passing --both.")