fix: index out of range when rebuild cache

This commit is contained in:
Terry Geng
2020-03-20 11:14:27 +08:00
parent 1d1ff50a59
commit 9a8d6d6ea1
4 changed files with 10 additions and 3 deletions

View File

@ -646,6 +646,7 @@ if __name__ == '__main__':
handler.setFormatter(formatter)
bot_logger.addHandler(handler)
logging.getLogger("root").addHandler(handler)
var.bot_logger = bot_logger
if var.config.get("bot", "save_music_library", fallback=True):