title: How to continue python script loop even though IOError?
body: <p>I have a program which request info from the twitter API, and from time to time I get an error:</p>
  
  <pre><code>IOError: [Errno socket error] [Errno 54] Connection reset by peer
  </code></pre>
  
  <p>I want to know how can I keep my script running (looping). I know that this has something to do with:</p>
  
  <pre><code>try:
  
  except IOError:
  </code></pre>
  
  <p>but I can not figure it out.</p>