Spaces:
Running
Running
mattoofahad
commited on
Commit
•
604d694
1
Parent(s):
de28db9
formatting\
Browse files- 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
|
23 |
-
|
|
|
|
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)
|