Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×I am (very happily) using the JIRA Python package to access our JIRA, and, have found what looks like an error.
When I access the JIRA server, and have an error (user not in the developer role for that project, or new issue is missing required fields) the package crashes on pulling the error messages.
if isinstance(errorMessages, (list, tuple)): error = errorMessages[0] else: error = errorMessages
...this code blows up on the 2nd line, as errorMessages[] is empty. This is in the raise_on_error def in exceptions.
..the end result is that the program crashes while trying to raise the exception.
Whoops: the error output is:
Traceback (most recent call last):
File "C:\Users\Greg CTR Sudderth\Desktop\Workspaces\Eclipse 4.2 Java EE\Create On Transition (DATA)\CreateOnTransition.py", line 49, in <module>
new_issue = jira.create_issue(project={'key': 'DATA'}, issuetype={'name': 'Data Service Request'})
File "C:\Python27\lib\site-packages\jira\client.py", line 369, in create_issue
raise_on_error(r)
File "C:\Python27\lib\site-packages\jira\exceptions.py", line 29, in raise_on_error
error = errorMessages[0]
IndexError: list index out of range
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
AI-powered meeting notes keep work moving even if you’re out of the office. Enjoy your well-deserved time off and return refreshed, confident you’ll catch up in no time.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.