diff --git a/.github/workflows/Jirabot.yml b/.github/workflows/Jirabot.yml index 029ce605b..c2f3c3229 100644 --- a/.github/workflows/Jirabot.yml +++ b/.github/workflows/Jirabot.yml @@ -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})