aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2017-04-03 12:02:24 +0200
committerGitHub <[email protected]>2017-04-03 12:02:24 +0200
commit9db7fdd5bed10f229ccb4f5e0cf472e4db8109a0 (patch)
treef85f1bac709b1788282250c09a52694f134476de /mastodon
parent763b863fcb853c30a436b669cf658f097c4d767a (diff)
parentd8ac59f4eb99e45d7babdab988616319d27430ef (diff)
downloadmastodon.py-9db7fdd5bed10f229ccb4f5e0cf472e4db8109a0.tar.gz
Merge pull request #12 from Psycojoker/typo
Small typo
Diffstat (limited to 'mastodon')
-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)