title: Using urllib2.urlopen i get different errors from local vs AWS EB
body: <p>I have this snippet in a python 2.7.6 app:</p>
  
  <pre><code>try:
      response = urllib2.urlopen(req, timeout=20)
  except:
      warning(sys.exc_info())
  </code></pre>
  
  <p>When I run it locally on my machine i get the error:</p>
  
  <pre><code>(&lt;class 'urllib2.URLError'&gt;, URLError(gaierror(8, 'nodename nor servname provided, or not known'),), &lt;traceback object at 0x10ca40b00&gt;)
  </code></pre>
  
  <p>When I run it on AWS EB I get </p>
  
  <pre><code>(&lt;class 'urllib2.URLError'&gt;, URLError(gaierror(-5, 'No address associated with hostname'),), &lt;traceback object at 0x7f59958a1050&gt;)
  </code></pre>
  
  <p>Why do I get different error messages? I believe I running the same versions of everything in both environments. </p>