Explorar el Código

logger.exception for the MAL RSS parsing

Penta hace 5 años
padre
commit
d5aff1ce43
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)