Skip to content

Commit 98a250b

Browse files
Merge pull request #3 from CapsuleHealth/email-handler-fix
handler json fix
2 parents 5689c1d + 6a70ab1 commit 98a250b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hamb/ham_run_utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def run(self, manifest: str, config: dict, params=None, db_log_table=None):
177177
job.append(detail["test"])
178178
stat.append(detail["status"])
179179
LOG.l(status)
180-
LOG.l(detail)
180+
# LOG.l(detail)
181181

182182
# Save execution results to db
183183
if db_log_table is not None:

hamb/handlers/email_handler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,6 @@ def json_serializer(data):
115115
elif isinstance(data, datetime):
116116
serial = data.isoformat()
117117
return serial
118-
raise TypeError("Type not serializable")
118+
else:
119+
return str(data)
120+
# raise TypeError("Type not serializable")

0 commit comments

Comments
 (0)