From 95275bb391aef0912a3dfb2cfbbd0d1460e2fbeb Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sat, 1 Apr 2017 15:04:45 +0200 Subject: [mod] typo --- mastodon/Mastodon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index b9ab05b..9660f5b 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -553,7 +553,7 @@ class Mastodon: # Handle response if self.debug_requests == True: print('Mastodon: Response received with code ' + str(response_object.status_code) + '.') - print('Respose headers: ' + str(response_object.headers)) + print('response headers: ' + str(response_object.headers)) print('Response text content: ' + str(response_object.text)) if response_object.status_code == 404: @@ -565,7 +565,7 @@ class Mastodon: try: response = response_object.json() except: - raise MastodonAPIError("Could not parse response as JSON, respose code was " + str(response_object.status_code)) + raise MastodonAPIError("Could not parse response as JSON, response code was " + str(response_object.status_code)) # Handle rate limiting if 'X-RateLimit-Remaining' in response_object.headers and do_ratelimiting: -- cgit v1.2.3