aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastodon/Mastodon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 12ceb1d..a5cf428 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -561,7 +561,7 @@ class Mastodon:
561 # Handle response 561 # Handle response
562 if self.debug_requests == True: 562 if self.debug_requests == True:
563 print('Mastodon: Response received with code ' + str(response_object.status_code) + '.') 563 print('Mastodon: Response received with code ' + str(response_object.status_code) + '.')
564 print('Respose headers: ' + str(response_object.headers)) 564 print('response headers: ' + str(response_object.headers))
565 print('Response text content: ' + str(response_object.text)) 565 print('Response text content: ' + str(response_object.text))
566 566
567 if response_object.status_code == 404: 567 if response_object.status_code == 404:
@@ -575,7 +575,7 @@ class Mastodon:
575 except: 575 except:
576 import traceback 576 import traceback
577 traceback.print_exc() 577 traceback.print_exc()
578 raise MastodonAPIError("Could not parse response as JSON, respose code was %s, bad json content was '%s'" % (response_object.status_code, response_object.content)) 578 raise MastodonAPIError("Could not parse response as JSON, response code was %s, bad json content was '%s'" % (response_object.status_code, response_object.content))
579 579
580 # Handle rate limiting 580 # Handle rate limiting
581 if 'X-RateLimit-Remaining' in response_object.headers and do_ratelimiting: 581 if 'X-RateLimit-Remaining' in response_object.headers and do_ratelimiting:
Powered by cgit v1.2.3 (git 2.41.0)