Browse Source

userguide/tasks: Use of positional argument after keyword argument in example.

Closes #86. Thanks to mitechie and winhamwr.
Ask Solem 15 years ago
parent
commit
5c9aaf10e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/userguide/tasks.rst

+ 1 - 1
docs/userguide/tasks.rst

@@ -136,7 +136,7 @@ attribute:
             twitter = Twitter(oauth)
             twitter.update_status(tweet)
         except (Twitter.FailWhaleError, Twitter.LoginError), exc:
-            send_twitter_status.retry(args=[oauth, tweet], kwargs, exc=exc)
+            send_twitter_status.retry(args=[oauth, tweet], kwargs=kwargs, exc=exc)
 
 Here we used the ``exc`` argument to pass the current exception to
 :meth:`Task.retry`. At each step of the retry this exception