浏览代码

logger.exception for the MAL RSS parsing

Penta 5 年之前
父节点
当前提交
d5aff1ce43
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      myanimebot/discord.py

+ 1 - 1
myanimebot/discord.py

@@ -367,7 +367,7 @@ async def background_check_feed(asyncioloop):
 						stop_boucle = 1
 					
 			except Exception as e:
-				globals.logger.error("Error when parsing RSS for '{}': {}".format(user.name, e))
+				globals.logger.exception("Error when parsing RSS for '{}':\n".format(user.name))
 			
 			await asyncio.sleep(globals.MYANIMELIST_SECONDS_BETWEEN_REQUESTS)