Skip to content

Commit

Permalink
HPCC4J-532 Jirabot exception handling improvements
Browse files Browse the repository at this point in the history
- Added exception to error output
- Fixed transition array output

Signed-off-by: James McMullan [email protected]
  • Loading branch information
jpmcmu committed Nov 6, 2023
1 parent 2dc8279 commit 5e098c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Jirabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
try:
jira.transition_issue(issue, transition)
result += 'Workflow Transition: ' + transition + '\n'
except:
except Exception as error:
transitions = jira.transitions(issue)
result += 'Error: Transition: "' + transition + '" failed. Valid transitions=[' + (', '.join(transitions)) + ']\n'
result += 'Error: Transition: "' + transition + '" failed with: "' + str(error) + '" Valid transitions=' + str(transitions) + '\n'
if issue.fields.customfield_10010 is None:
issue.update(fields={'customfield_10010': pull_url})
Expand Down

0 comments on commit 5e098c8

Please sign in to comment.