Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,15 @@ def post(self, request: Request, project: Project) -> Response:
)
session = requests.Session()

apps = appstore_connect.get_apps(session, credentials)
try:
apps = appstore_connect.get_apps(session, credentials)
except appstore_connect.UnauthorizedError:
raise AppConnectAuthenticationError
except appstore_connect.ForbiddenError:
raise AppConnectForbiddenError

if apps is None:
raise AppConnectAuthenticationError()
raise AppConnectAuthenticationError

all_apps = [
{"name": app.name, "bundleId": app.bundle_id, "appId": app.app_id} for app in apps
Expand Down