From 0198916856bdb416f68bbae4637064d2f3cab5d8 Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Tue, 30 Jul 2013 19:31:51 +0700 Subject: [PATCH] Fixes an issue where register_sentry breaks when logging jobs with unimportable function. --- rq/contrib/sentry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/contrib/sentry.py b/rq/contrib/sentry.py index abaef72..4b776d1 100644 --- a/rq/contrib/sentry.py +++ b/rq/contrib/sentry.py @@ -7,7 +7,7 @@ def register_sentry(client, worker): exc_info=exc_info, extra={ 'job_id': job.id, - 'func': job.func, + 'func': job.func_name, 'args': job.args, 'kwargs': job.kwargs, 'description': job.description,