aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Peuch <[email protected]>2017-04-01 15:04:45 +0200
committerLaurent Peuch <[email protected]>2017-04-01 15:04:45 +0200
commit95275bb391aef0912a3dfb2cfbbd0d1460e2fbeb (patch)
tree90a46c6b69e0297b2bc67e2fcd191298bbedce08 /mastodon/Mastodon.py
parent857968f34e19191e0ae5771b3a62e450a180ad0e (diff)
downloadmastodon.py-95275bb391aef0912a3dfb2cfbbd0d1460e2fbeb.tar.gz
[mod] typo
Diffstat (limited to 'mastodon/Mastodon.py')
-rw-r--r--mastodon/Mastodon.py4
1 files changed, 2 insertions, 2 deletions
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:
553 # Handle response 553 # Handle response
554 if self.debug_requests == True: 554 if self.debug_requests == True:
555 print('Mastodon: Response received with code ' + str(response_object.status_code) + '.') 555 print('Mastodon: Response received with code ' + str(response_object.status_code) + '.')
556 print('Respose headers: ' + str(response_object.headers)) 556 print('response headers: ' + str(response_object.headers))
557 print('Response text content: ' + str(response_object.text)) 557 print('Response text content: ' + str(response_object.text))
558 558
559 if response_object.status_code == 404: 559 if response_object.status_code == 404:
@@ -565,7 +565,7 @@ class Mastodon:
565 try: 565 try:
566 response = response_object.json() 566 response = response_object.json()
567 except: 567 except:
568 raise MastodonAPIError("Could not parse response as JSON, respose code was " + str(response_object.status_code)) 568 raise MastodonAPIError("Could not parse response as JSON, response code was " + str(response_object.status_code))
569 569
570 # Handle rate limiting 570 # Handle rate limiting
571 if 'X-RateLimit-Remaining' in response_object.headers and do_ratelimiting: 571 if 'X-RateLimit-Remaining' in response_object.headers and do_ratelimiting:
Powered by cgit v1.2.3 (git 2.41.0)