diff --git a/unobot.py b/unobot.py index f782b9e..ac7847a 100644 --- a/unobot.py +++ b/unobot.py @@ -719,10 +719,6 @@ def update_scores(self, bot, players, winner, score, time): bot.say("Error saving UNO score file: %s" % e) def get_scores(self, bot): - # @TODO refactor to get rid of redundant function - return self.load_scores(bot) - - def load_scores(self, bot): scores = {} with lock: try: @@ -731,7 +727,7 @@ def load_scores(self, bot): except ValueError: try: self.convert_score_file(bot) - return self.load_scores(bot) + return self.get_scores(bot) except ValueError: bot.say("Something has gone horribly wrong with the UNO scores. Please submit an issue on GitHub.") except IOError, e: