diff options
-rw-r--r-- | mastodon/Mastodon.py | 4 |
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: |