Skip to content

Commit

Permalink
Merge pull request #3 from CapsuleHealth/email-handler-fix
Browse files Browse the repository at this point in the history
handler json fix
  • Loading branch information
renyu-capsule authored Oct 19, 2021
2 parents 5689c1d + 6a70ab1 commit 98a250b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hamb/ham_run_utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def run(self, manifest: str, config: dict, params=None, db_log_table=None):
job.append(detail["test"])
stat.append(detail["status"])
LOG.l(status)
LOG.l(detail)
# LOG.l(detail)

# Save execution results to db
if db_log_table is not None:
Expand Down
4 changes: 3 additions & 1 deletion hamb/handlers/email_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,6 @@ def json_serializer(data):
elif isinstance(data, datetime):
serial = data.isoformat()
return serial
raise TypeError("Type not serializable")
else:
return str(data)
# raise TypeError("Type not serializable")

0 comments on commit 98a250b

Please sign in to comment.