Explorar o código

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

Closes #86. Thanks to mitechie and winhamwr.
Ask Solem %!s(int64=15) %!d(string=hai) anos
pai
achega
5c9aaf10e4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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