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

correctly attach error_trace from server to raised exceptions #90

Merged
merged 2 commits into from
Jul 18, 2014

Conversation

mfelsche
Copy link
Contributor

No description provided.

url_params = {}
if error_trace:
if self.error_trace:
Copy link
Contributor

Choose a reason for hiding this comment

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

why making an instance variable if nowhere else used?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling 5474cc8 on m/error_trace_exc into a14b8ce on master.

@@ -337,9 +339,10 @@ def _raise_for_status(self, response):
).startswith("application/json"):
data = json.loads(six.text_type(response.data, 'utf-8'))
error = data.get('error', {})
error_trace = data.get('error_trace', {})
Copy link
Contributor

Choose a reason for hiding this comment

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

if you use None as default value for error_trace in the exception constructor I would also use None as default here

@chaudum
Copy link
Contributor

chaudum commented Jul 18, 2014

ack

@chaudum
Copy link
Contributor

chaudum commented Jul 18, 2014

squash & merge pls

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling 64bed62 on m/error_trace_exc into a14b8ce on master.

mfelsche added a commit that referenced this pull request Jul 18, 2014
correctly attach error_trace from server to raised exceptions
@mfelsche mfelsche merged commit b3c69b3 into master Jul 18, 2014
@mfelsche mfelsche deleted the m/error_trace_exc branch July 18, 2014 20:57
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.

None yet

4 participants