title: Handling ConnectionResetError
body: <p>I have a question on handling ConnectionResetError in Python3. This usually happens when I use the urllib.request.Request function. I would like to know if it is ok to redo the request if we come across such error. For example</p>
  
  <pre><code>def get_html(url):
      try:
          request = Request(url)
          response = urlopen(request)
          html = response.read()
      except ConectionReserError as e:
          get_html(url)
  </code></pre>