From 97bfea2f244f7d077cc8b83a039a5d444c0a1a31 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Fri, 24 Mar 2017 17:14:14 +0100 Subject: [PATCH] Normalize name --- twitools/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twitools/__init__.py b/twitools/__init__.py index 58d31f5..69122d9 100644 --- a/twitools/__init__.py +++ b/twitools/__init__.py @@ -27,7 +27,7 @@ class twObject: def authenticate(self): try: authurl = self.auth.get_authorization_url() - except tweepy.TweepError: + except tweepy.error.TweepError: return False print(authurl) @@ -38,7 +38,7 @@ class twObject: try: self.auth.get_access_token(pin) - except tweepy.TweepError: + except tweepy.error.TweepError: return False return self.auth.access_token, self.auth.access_token_secret