From 9007722c230d91c51dc8741198f9d53180210810 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Mon, 21 Sep 2009 23:32:15 -0400 Subject: [PATCH] Fixed AuthError issue (#8 in the issue tracker) - AuthError was being passed one argument too many... --- twython.py | 2 +- twython3k.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/twython.py b/twython.py index f14f4a8..fccc2ac 100644 --- a/twython.py +++ b/twython.py @@ -97,7 +97,7 @@ class setup: simplejson.load(self.opener.open("http://twitter.com/account/verify_credentials.json")) self.authenticated = True except HTTPError, e: - raise AuthError("Authentication failed with your provided credentials. Try again? (%s failure)" % `e.code`, e.code) + raise AuthError("Authentication failed with your provided credentials. Try again? (%s failure)" % `e.code`) elif consumer_secret is not None and consumer_key is not None: self.consumer = oauth.OAuthConsumer(self.consumer_key, self.consumer_secret) self.connection = httplib.HTTPSConnection(SERVER) diff --git a/twython3k.py b/twython3k.py index bc8fdb9..7761f61 100644 --- a/twython3k.py +++ b/twython3k.py @@ -97,7 +97,7 @@ class setup: simplejson.load(self.opener.open("http://twitter.com/account/verify_credentials.json")) self.authenticated = True except HTTPError as e: - raise AuthError("Authentication failed with your provided credentials. Try again? (%s failure)" % repr(e.code), e.code) + raise AuthError("Authentication failed with your provided credentials. Try again? (%s failure)" % repr(e.code)) elif consumer_secret is not None and consumer_key is not None: self.consumer = oauth.OAuthConsumer(self.consumer_key, self.consumer_secret) self.connection = http.client.HTTPSConnection(SERVER)