title: How to ingore TIMEOUT error in While loop
body: <p>I am downloading historic data from NSE site and running below code. It is give <strong>TIMEOUT</strong> error for public holidays as data in not available for those days. How can I ignore this error and let the loop continue for next date.</p>
  <pre><code>from datetime import date, datetime
  from pandas.tseries.offsets import BDay
  from jugaad_data.nse import bhavcopy_fo_save
  i=0
  while i&lt;2610:
      Date = (datetime.today() - BDay(i)).date()
      bhavcopy_fo_save(Date, r&quot;C:\Users\Mohit\ALGO_TRADING\bhavcopy&quot;)
      i=i+1
  </code></pre>
  <p>I have pasted error screenshot as below-</p>
  <p><a href="https://i.stack.imgur.com/mjKe9.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><a href="https://i.stack.imgur.com/u8YdI.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Thanks,
  Mohit</p>