Skip to content

Commit d5d8e05

Browse files
committed
Systemhook exception
1 parent bd038ed commit d5d8e05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/AoE4_Overlay.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ def excepthook(exc_type: Type[BaseException], exc_value: Exception,
2626
exc_info=(exc_type, exc_value, exc_tback))
2727

2828
# If compiled, send email log
29-
if is_compiled() and settings.send_email_logs:
30-
try:
29+
try:
30+
if is_compiled() and settings.send_email_logs:
3131
send_email_log(VERSION, exc_type, exc_value, exc_tback)
32-
except Exception:
33-
logger.exception("Failed to send a log through email")
32+
except Exception:
33+
logger.exception("Failed to send a log through email")
3434

3535
# Try to save settings
3636
try:

0 commit comments

Comments
 (0)