diff --git a/src/application.py b/src/application.py index b5338a10..ddcdbcbd 100644 --- a/src/application.py +++ b/src/application.py @@ -3,10 +3,10 @@ import datetime # Make date check for feb 9. now = datetime.datetime.now() -end_of_twitter = datetime.datetime(2023, 2, 9) +end_of_twitter = datetime.datetime(2023, 2, 13) twitter_support_enabled = True -if now >= end_of_twitter: - twitter_support_enabled = False +#if now >= end_of_twitter: +# twitter_support_enabled = False name = 'TWBlue' short_name='twblue' update_url = 'https://twblue.es/updates/updates.php' diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 88851ca2..2b47bf64 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -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: