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