Fixed some stuff in main controller. Likes work again

This commit is contained in:
Manuel Cortez 2021-01-13 10:31:37 -06:00
parent 4064582583
commit a261365682

View File

@ -564,7 +564,7 @@ class Controller(object):
buff.session.db["lists"].pop(older_list) buff.session.db["lists"].pop(older_list)
buff.session.db["lists"].append(list) buff.session.db["lists"].append(list)
except TweepError as e: except TweepError as e:
output.speak("error %s: %s" % (e.error_code, e.reason)) output.speak("error %s: %s" % (e.api_code, e.reason))
def remove_from_list(self, *args, **kwargs): def remove_from_list(self, *args, **kwargs):
buff = self.get_best_buffer() buff = self.get_best_buffer()
@ -592,7 +592,7 @@ class Controller(object):
buff.session.db["lists"].pop(older_list) buff.session.db["lists"].pop(older_list)
buff.session.db["lists"].append(list) buff.session.db["lists"].append(list)
except TweepError as e: except TweepError as e:
output.speak("error %s: %s" % (e.error_code, e.reason)) output.speak("error %s: %s" % (e.api_code, e.reason))
def list_manager(self, *args, **kwargs): def list_manager(self, *args, **kwargs):
s = self.get_best_buffer().session s = self.get_best_buffer().session