Преглед на файлове

documentation fix. (#3732)

Add missing parentheses to example on line 176.
Eric Poelke преди 8 години
родител
ревизия
3761066032
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      docs/userguide/tasks.rst

+ 1 - 1
docs/userguide/tasks.rst

@@ -173,7 +173,7 @@ The ``base`` argument to the task decorator specifies the base class of the task
     class MyTask(celery.Task):
 
         def on_failure(self, exc, task_id, args, kwargs, einfo):
-            print('{0!r} failed: {1!r}'.format(task_id, exc)
+            print('{0!r} failed: {1!r}'.format(task_id, exc))
 
     @task(base=MyTask)
     def add(x, y):