Initial work to Support Tweepy 4

This commit is contained in:
2021-09-26 03:58:25 -05:00
parent 0c27427843
commit d8fca3b31a
17 changed files with 124 additions and 198 deletions

View File

@@ -10,7 +10,7 @@ import logging
from controller import messages
from sessions.twitter import compose, utils
from mysc.thread_utils import call_threaded
from tweepy.error import TweepError
from tweepy.errors import TweepyException
from pubsub import pub
from . import base
@@ -40,7 +40,7 @@ class DirectMessagesBuffer(base.BaseBuffer):
results = [i for i in items]
items = results
log.debug("Retrieved %d items for cursored search in function %s" % (len(items), self.function))
except TweepError as e:
except TweepyException as e:
log.error("Error %s: %s" % (e.api_code, e.reason))
return
if items == None: