title: How to handle timeout error in request.head(url)?
body: <p>Script:</p>
  <pre><code>&gt;&gt;&gt; import requests
  &gt;&gt;&gt; print(requests.head('https://knoema.com/BISDPPLS2016/bis-property-prices-long-series'))
  &lt;Response [200]&gt;
  
  &gt;&gt;&gt; print(requests.head('https://beta.knoema.org/BISDPPLS2016/bis-property-prices-long-series'))
  Connection to beta.knoema.org timed out.
  </code></pre>
  <p>I tried below as well, but same error:</p>
  <pre><code>&gt;&gt;&gt; print(requests.head('https://beta.knoema.org/IRFCL2016Jul', timeout=5))
  </code></pre>
  <p>I want to stop <code>requests.head(url)</code> if it does not exist or is not loading for any reason. How to achieve this?</p>