diff --git a/lib/galaxy/job_execution/actions/post.py b/lib/galaxy/job_execution/actions/post.py index 75b03cd3e9e6..10c1e3a57071 100644 --- a/lib/galaxy/job_execution/actions/post.py +++ b/lib/galaxy/job_execution/actions/post.py @@ -9,10 +9,7 @@ from galaxy.model import PostJobActionAssociation from galaxy.model.base import transaction -from galaxy.util import ( - send_mail, - unicodify, -) +from galaxy.util import send_mail from galaxy.util.custom_logging import get_logger log = get_logger(__name__) @@ -70,8 +67,8 @@ def execute(cls, app, sa_session, action, job, replacement_dict, final_job_state if link_invocation: body += f"\n\nWorkflow Invocation Report:\n{link_invocation}" send_mail(app.config.email_from, to, subject, body, app.config) - except Exception as e: - log.error("EmailAction PJA Failed, exception: %s", unicodify(e)) + except Exception: + log.exception("EmailAction PJA Failed") @classmethod def get_short_str(cls, pja):