mattoofahad commited on
Commit
604d694
1 Parent(s): de28db9

formatting\

Browse files
Files changed (1) hide show
  1. src/utils/discord.py +3 -2
src/utils/discord.py CHANGED
@@ -19,5 +19,6 @@ def discord_hook(message):
19
  logger.debug("Discord Hook Successful.")
20
  else:
21
  logger.debug("Discord Hook Failed.")
22
- except Exception as e:
23
- logger.error(f"Discord Hook Failed. Error {e}")
 
 
19
  logger.debug("Discord Hook Successful.")
20
  else:
21
  logger.debug("Discord Hook Failed.")
22
+ except Exception as error:
23
+ error_message = f"Discord Hook Failed. Error {error}"
24
+ logger.error(error_message)