Sfoglia il codice sorgente

documentation fix. (#3732)

Add missing parentheses to example on line 176.
Eric Poelke 8 anni fa
parent
commit
3761066032
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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):