Skip to content

Commit

Permalink
Add error handling for empty bundle ID identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
priitlatt committed Nov 7, 2024
1 parent 5f6069b commit fdfc5c7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ def fetch_signing_files(
for Bundle ID with given identifier
"""

if not bundle_id_identifier:
raise BundleIdArgument.BUNDLE_ID_IDENTIFIER.raise_argument_error(
"Bundle ID identifier must be specified, empty values are not allowed. For example `com.example.app`.",
)

private_key = self._get_certificate_key(certificate_key, certificate_key_password)
if private_key is None:
raise AppStoreConnectError(f"Cannot save {SigningCertificate.s} without certificate private key")
Expand Down

0 comments on commit fdfc5c7

Please sign in to comment.