title: Python - While True: Try Except Else - Program Flow Question
body: <p>I have this code using a <code>While True</code> with a <code>try catch</code>. The final else statement is always being executed when the 'try' is successful and I'd like to understand why - I think I'm not understanding the program flow correctly.</p>
  
  <pre class="lang-py prettyprint-override"><code>while True:
      try:
          subprocess.call(["wget", "-O", "splunk-8.0.1-6db836e2fb9e-Linux-x86_64.tgz", "https://www.splunk.com/bin/splunk/DownloadActivityServlet?architecture=x86_64&amp;platform=linux&amp;version=8.0.1&amp;product=splunk&amp;filename=splunk-8.0.1-6db836e2fb9e-Linux-x86_64.tgz&amp;wget=true"])
          print("successfully downloaded splunk enterprise")
          time.sleep(2)
      except OSError as e:
          if e.errno == 2:
              print(e)
              print("wget doesn't seem to be installed")
              time.sleep(2)
              print("attempting to install wget")
              time.sleep(2)
              subprocess.call(["yum", "install", "wget"])
          else:
              print(e)
              print("unknown error response, exiting...")
              break
      else:
          print("something else went wrong while trying to download splunk")
          break
  </code></pre>