Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #107 from simonsolnes/master
Browse files Browse the repository at this point in the history
Added string property to Response
  • Loading branch information
simonsolnes authored May 15, 2017
2 parents a233a24 + 4ad6175 commit b3718c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slacker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def __init__(self, body):
self.body = json.loads(body)
self.successful = self.body['ok']
self.error = self.body.get('error')
def __str__(self):
return json.dumps(self.body)


class BaseAPI(object):
Expand Down

0 comments on commit b3718c6

Please sign in to comment.