Skip to content

Commit d72b7e8

Browse files
Fixed a "wrong" description for the ImproperlyConfigured exception in django_celery_results.settings
Fixed a "wrong" description for the `ImproperlyConfigured` exception raised when `task_props_extension` doesn't complies with the Mapping protocol. At this point `task_props_extension` is just a dict that inherits from Mapping, not an explicit instance. Thanks @AllexVeldman Co-authored-by: Allex <a.veldman@chain-stock.com>
1 parent 8509a64 commit d72b7e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

django_celery_results/settings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ def get_task_props_extension(request, task_props):
2929
task_props_extension = extend_task_props_callback(request, task_props) or {}
3030
if not isinstance(task_props_extension, Mapping):
3131
raise ImproperlyConfigured(
32-
"CELERY_RESULTS_EXTEND_TASK_PROPS_CALLBACK must return a Mapping "
33-
"instance."
32+
"CELERY_RESULTS_EXTEND_TASK_PROPS_CALLBACK must return a Mapping."
3433
)
3534

3635
return task_props_extension

0 commit comments

Comments
 (0)