Display error when attempting to open a TL for an unauthorized user. Closes #485

This commit is contained in:
2022-08-16 17:11:50 -05:00
parent 1e686cffba
commit b9794806d7
2 changed files with 2 additions and 1 deletions

View File

@@ -869,7 +869,7 @@ class Controller(object):
tl = buffers.twitter.BaseBuffer(self.view.nb, "user_timeline", "%s-timeline" % (usr.id_str,), buff.session, buff.session.db["user_name"], bufferType=None, sound="tweet_timeline.ogg", user_id=usr.id_str, include_ext_alt_text=True, tweet_mode="extended")
try:
tl.start_stream(play_sound=False)
except ValueError:
except TweepyException:
commonMessageDialogs.unauthorized()
return
pos=self.view.search("timelines", buff.session.db["user_name"])