Skip to content

Commit 62383df

Browse files
committed
[Py3] Fixes docs build on py3
1 parent 5b5e48a commit 62383df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

celery/app/task.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ class Task(object):
230230
#: Default task expiry time.
231231
expires = None
232232

233+
#: Task request stack, the current request will be the topmost.
234+
request_stack = None
235+
233236
#: Some may expect a request to exist even if the task has not been
234237
#: called. This should probably be deprecated.
235238
_default_request = None
@@ -466,7 +469,7 @@ def apply_async(self, args=None, kwargs=None, task_id=None, producer=None,
466469
except AttributeError:
467470
pass
468471
else:
469-
check_arguments(*args or (), **kwargs or {})
472+
check_arguments(*(args or ()), **(kwargs or {}))
470473

471474
app = self._get_app()
472475
if app.conf.CELERY_ALWAYS_EAGER:

0 commit comments

Comments
 (0)