Skip to content

Conversation

@taylorjdawson
Copy link
Contributor

No description provided.

When there was an error with the request, the connect method was returning the string
"Connection refused". This would cause errors in the subclasses. So I have it printing the string and
then exiting. I think in the future exceptions should be used.
- Checks that the status code is 1. If it's not then the program exits and returns the message field to the
user.

Incidentals:

- I was using `json.loads()` to turn the respone text into json. However, the request object has a method which
returns the json from the response. Thus, I have switched to using the `.json()` method.
@corpetty corpetty merged commit dc375dd into corpetty:master Dec 22, 2017
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