diff options
author | Laurent Peuch <[email protected]> | 2017-04-01 15:04:45 +0200 |
---|---|---|
committer | Laurent Peuch <[email protected]> | 2017-04-01 15:04:45 +0200 |
commit | 95275bb391aef0912a3dfb2cfbbd0d1460e2fbeb (patch) | |
tree | 90a46c6b69e0297b2bc67e2fcd191298bbedce08 | |
parent | 857968f34e19191e0ae5771b3a62e450a180ad0e (diff) | |
download | mastodon.py-95275bb391aef0912a3dfb2cfbbd0d1460e2fbeb.tar.gz |
[mod] typo
-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: |