What type of exception is a urllib3 connection failure?
<p>I have a section of code that gives me a urllib3 error when the IP address of the host it's connecting to is wrong, and also stops the App from starting up. </p>

<p>This connection attempt is in a view(not the main view), which I'm assuming is being called when the application starts up.</p>

<p>I want to write a <code>try</code> to check for this exception, however, the error doesn't mention what exception type it's seeing. </p>

<p><strong>Q:</strong> What Exception type can I specify in the <code>try</code> to handle this error when then application starts up?</p>

<p><strong>Error</strong></p>

<blockquote>
  <p>Was unable to import app<br>
  Error: HTTPSConnectionPool(host='10.0.0.1', port=834): Max retries exceeded with url: /items (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 113] No route to host',))</p>
</blockquote>

<p>Thanks in advance. </p>