Skip to content

Commit 8bdcc86

Browse files
committed
removed exception msg
1 parent 043de24 commit 8bdcc86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_label_core/auto_label.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def clear_logs(file_path='logs.csv'):
5252
# print(f"Email content - {mail_body}\n")
5353
except Exception as e:
5454
print(f"Error fetching email content: {e}\n")
55-
data_to_write = ('FAILED', message_id, '-', f"Error fetching email content: {e}")
55+
data_to_write = ('FAILED', message_id, '-', f"Error fetching email content")
5656
write_to_csv(data_to_write)
5757
continue
5858

@@ -62,7 +62,7 @@ def clear_logs(file_path='logs.csv'):
6262
print(f"reason - {reason}\n")
6363
except Exception as e:
6464
print(f"Error processing email: {e}\n")
65-
data_to_write = ('FAILED', mail_subject, '-', f"Error processing email: {e}")
65+
data_to_write = ('FAILED', mail_subject, '-', f"Error processing email")
6666
write_to_csv(data_to_write)
6767
continue
6868

0 commit comments

Comments
 (0)