Twitter: Remove Twitter deprecation on feb 9 due to (more) changes on dates, features and stuff

This commit is contained in:
2023-02-08 23:00:45 -06:00
parent d0fcf88b31
commit 310ba003c9
2 changed files with 7 additions and 4 deletions

View File

@@ -829,7 +829,10 @@ class Controller(object):
output.speak(msg, True)
def previous_account(self, *args, **kwargs):
index = self.accounts.index(self.current_account)
try:
index = self.accounts.index(self.current_account)
except ValueError:
index = 0
if index-1 < 0:
index = len(self.accounts)-1
else: