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

Handle api.slack.com returning invalid JSON responses #7

Merged
merged 2 commits into from
Mar 5, 2015

Conversation

martinmelin
Copy link
Contributor

Written quickly while waiting for api.slack.com to come back online :)

response = requests.get(url, params=params, verify=True).json()
_raise_error_if_not_ok(response)
return response
return _parse_response(requests.get(url, params=params, verify=True))
Copy link
Owner

Choose a reason for hiding this comment

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

Minor thing but I think it's easier to read if we can break this down into two lines:

response = requests.get(url, params=params, verify=True)
return  _parse_response(response)

@kn
Copy link
Owner

kn commented Mar 4, 2015

just a few minor comments o/w LGTM!

@martinmelin
Copy link
Contributor Author

Thanks, pushed the suggested improvements!

@kn
Copy link
Owner

kn commented Mar 5, 2015

Great - thanks!

kn added a commit that referenced this pull request Mar 5, 2015
Handle api.slack.com returning invalid JSON responses
@kn kn merged commit 786a7d2 into kn:master Mar 5, 2015
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.

2 participants