Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent IndexError when examining tasks that don't have raw.xz outputs #24

Merged
merged 2 commits into from Apr 20, 2015

Conversation

dtgay
Copy link
Contributor

@dtgay dtgay commented Apr 19, 2015

I had a big "do'h" moment just now and realized this will fix the IndexError error messages we've been seeing on fedimg machines. This should fix #23.

elif len(builds) >= 2:
koji_session.multicall = True
for build in builds:
koji_session.getTaskResult(build)
results = koji_session.multiCall()
for result in results:
rawxz_files.append(get_rawxz_url(result[0]))
url = get_rawxz_url(result[0])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't this be the IndexError, if result is empty?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but it's not the IndexError we've been seing in the logs. Nonetheless, it would be good to check if result first.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review. Fixed this. Good to merge?

@pypingou
Copy link
Member

👍 for me

dtgay pushed a commit that referenced this pull request Apr 20, 2015
prevent IndexError when examining tasks that don't have raw.xz outputs
@dtgay dtgay merged commit 806f2b0 into develop Apr 20, 2015
@dtgay dtgay deleted the feature/issue-23 branch April 20, 2015 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IndexError when no raw.xz files found
3 participants