From: Josh Roesslein Date: Tue, 8 Sep 2009 15:09:45 +0000 (-0500) Subject: Tabs->spaces X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=46963275da64f596d678a1a644bc0465927359ff;p=tweepy.git Tabs->spaces --- diff --git a/tweepy/binder.py b/tweepy/binder.py index 7b4f8a5..5595db3 100644 --- a/tweepy/binder.py +++ b/tweepy/binder.py @@ -93,12 +93,12 @@ def bind_api(path, parser, allowed_param=None, method='GET', require_auth=False, resp = conn.getresponse() # If an error was returned, throw an exception - if resp.status != 200: - try: - error_msg = parse_error(resp.read()) - except Exception: - error_msg = "Unkown twitter error response received: status=%s" % resp.status - raise TweepError(error_msg) + if resp.status != 200: + try: + error_msg = parse_error(resp.read()) + except Exception: + error_msg = "Unkown twitter error response received: status=%s" % resp.status + raise TweepError(error_msg) # Pass returned body into parser and return parser output out = parser(resp.read(), api)