Skip to content

Commit db8b48e

Browse files
Christinarlongshashjar
authored andcommitted
chore(jira): Catch Jira HTML error (#102596)
1 parent 019f1c1 commit db8b48e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sentry/integrations/jira/integration.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,11 @@ def create_issue(self, data, **kwargs):
963963
if not jira_project:
964964
raise IntegrationFormError({"project": ["Jira project is required"]})
965965

966-
meta = client.get_create_meta_for_project(jira_project)
966+
try:
967+
meta = client.get_create_meta_for_project(jira_project)
968+
except ApiError as e:
969+
self.raise_error(e)
970+
967971
if not meta:
968972
raise IntegrationConfigurationError(
969973
"Could not fetch issue create configuration from Jira."

0 commit comments

Comments
 (0)