mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 01:18:12 +08:00
Feat: Add biweekly and bimonthly and fix translations (#36)
This commit is contained in:
+3
-3
@@ -19,7 +19,7 @@ def call_hook(sender, instance, **kwargs):
|
||||
f = getattr(m, func)
|
||||
except (ValueError, ImportError, AttributeError):
|
||||
logger.error(
|
||||
_(f"malformed return hook '{instance.hook}' for [{instance.name}]")
|
||||
_("malformed return hook '%(hook)s' for [%(name)s]") % {'hook': instance.hook, 'name': instance.name}
|
||||
)
|
||||
return
|
||||
try:
|
||||
@@ -27,8 +27,8 @@ def call_hook(sender, instance, **kwargs):
|
||||
except Exception as e:
|
||||
logger.error(
|
||||
_(
|
||||
f"return hook {instance.hook} failed on [{instance.name}] because {str(e)}"
|
||||
)
|
||||
"return hook %(hook)s failed on [%(name)s] because %(error)s"
|
||||
) % {'hook': instance.hook, 'name': instance.name, 'error': str(e)}
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user