title: bash code to run python file continuously
body: <ol>
  <li><p>The python file in question collects data from API and the server is down once in a while so it stops running. to solve this, I've written this batch file that would keep running the file even if it encounters an error, so in few minutes it would be running as usual.</p>
  <p>:1</p>
  <p>python3 datacollection.py</p>
  <p>goto 1</p>
  </li>
  </ol>
  <p>Now, how do I achieve the same with bash file?</p>
  <p>Note: I want to run the python file on AWS EC2 Ubuntu.</p>