-
Notifications
You must be signed in to change notification settings - Fork 48
fix: Updated Error Type to TaskclusterRestFailure to align with the switch to the taskcluster package #822
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
Conversation
bhearsum
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there other places we're catching errors from the old functions? If you haven't done an audit of them, please do before merging this.
bhearsum
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we might need to catch both of these?
76d2062 to
141c420
Compare
I will look through it and see if there is anything, I can change rn |
ahal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming you've done a quick scan for other such cases, this lgtm!
141c420 to
2080104
Compare
| cancel_task(task_id) | ||
| except requests.HTTPError as e: | ||
| if e.response.status_code == 409: | ||
| except (requests.HTTPError, TaskclusterRestFailure) as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need to catch HTTPError? I didn't think it would still be possible to get this, same Q for the other two places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think is possible either, I wanted to keep to air on the side of caution and remove it a later in a less sensitive time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok sounds good, I don't see any harm in leaving it for now.. Though maybe file an issue to clean it up later?
2080104 to
ff7209b
Compare
| cancel_task(task_id) | ||
| except requests.HTTPError as e: | ||
| if e.response.status_code == 409: | ||
| except (requests.HTTPError, TaskclusterRestFailure) as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok sounds good, I don't see any harm in leaving it for now.. Though maybe file an issue to clean it up later?
…witch to the taskcluster package
…witch to the taskcluster package