From d9d0e7db73b5e84a83750e497ccb895f1dbc0449 Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Wed, 8 Jul 2015 14:27:51 +0200 Subject: [PATCH] consistent task name formatting --- django_q/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django_q/models.py b/django_q/models.py index c802eb5..02f7fcb 100644 --- a/django_q/models.py +++ b/django_q/models.py @@ -57,12 +57,12 @@ def call_hook(sender, instance, **kwargs): m = importlib.import_module(module) f = getattr(m, func) except (ValueError, ImportError, AttributeError): - logger.error(_('malformed return hook \'{}\' for {}').format(instance.hook, instance.name)) + logger.error(_('malformed return hook \'{}\' for [{}]').format(instance.hook, instance.name)) return try: f(instance) except Exception as e: - logger.error(_('return hook {} failed on {} because {}').format(instance.hook, instance.name, e)) + logger.error(_('return hook {} failed on [{}] because {}').format(instance.hook, instance.name, e)) class SuccessManager(models.Manager):