title: Stop program from running after try / except python
body: <p>I made a program that takes values from treeview and calculate something when button is pressed. I put try / except statement inside that function.</p>
  
  <pre><code>def SumAll():
      try:
         #do something (calculate)
  
      except ValueError:
  
          Error=messagebox.showinfo("Enter proper values")
          pass
  </code></pre>
  
  <p>The problem is, program keeps running when <code>messagebox.showinfo</code> appears, and it gives the <code>ValueError</code>.
  How can I fix that, and how can I put more than one error exception (<code>IndexError</code>, etc)?</p>