projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90da255
)
fix formatting in last code snippet.
author
grocerheist
<groceryheist@gmail.com>
Wed, 31 Dec 2014 22:00:49 +0000
(14:00 -0800)
committer
grocerheist
<groceryheist@gmail.com>
Wed, 31 Dec 2014 22:00:49 +0000
(14:00 -0800)
docs/streaming_how_to.rst
patch
|
blob
|
blame
|
history
diff --git
a/docs/streaming_how_to.rst
b/docs/streaming_how_to.rst
index 63707f8fa6cce7aabe1419b086a42ade1358d6e9..a2bd43d4ad7b393ca2fd64af2c91def54efc4785 100644
(file)
--- a/
docs/streaming_how_to.rst
+++ b/
docs/streaming_how_to.rst
@@
-100,11
+100,11
@@
in a window of time, they will receive error 420. The amount of time a client h
will increase exponentially each time they make a failed attempt.
Tweepy's **Stream Listener** usefully passes error messages to an **on_error** stub. We can use **on_error** to
-catch 420 errors and disconnect our stream.::
+catch 420 errors and disconnect our stream.
::
class MyStreamListener(tweepy.StreamListener):
- def on_error(self, status_code):
+
def on_error(self, status_code):
if status_code == 420:
#returning False in on_data disconnects the stream
return False