We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4d040 commit 43cf3b9Copy full SHA for 43cf3b9
commanderbot/ext/jira/jira_client.py
@@ -57,7 +57,7 @@ async def _fetch_issue_json(self, query: JiraQuery) -> JsonObject:
57
async def get_issue(self, query: JiraQuery) -> JiraIssue:
58
# Fetch issue and raise an exception we got no results
59
data: JsonObject = await self._fetch_issue_json(query)
60
- if data["total"] != 1:
+ if len(data.get("issues", 0)) != 1:
61
raise IssueNotFound(query.issue_id)
62
63
# Extract the issue's fields
0 commit comments