From d01b1ab911d0c69987f5067fabbeffc000d0624b Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Sun, 9 Jun 2013 11:55:40 -0400 Subject: [PATCH] Accept 200, 201, and 202 as non-error response codes --- tweepy/binder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/binder.py b/tweepy/binder.py index c5e99b9..f0b0803 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -165,7 +165,7 @@ def bind_api(**config): # If an error was returned, throw an exception self.api.last_response = resp - if resp.status != 200: + if resp.status not in [200, 201, 202]: try: error_msg = self.api.parser.parse_error(resp.read()) except Exception: -- 2.25.1