title: Ignore TypeError in Python
body: <p>I am working on some soon-to-be obsolete scientific software written in Python (Enthought Python Distribution, Python 2.7.1, IPython 0.10.1). We need to check if the older results are correct, but with the massive amount of data we have the GUI procedure we need to make working with non-GUI mode. The important piece of code is to save the data:</p>
  
  <pre><code>def _save_button_fired(self):
      self.savedata()
  </code></pre>
  
  <p>In GUI when we click on the button the file is saved correctly. In non-GUI mode, when we do the following:</p>
  
  <pre><code>m.savedata()
  </code></pre>
  
  <p>the file is created, but a number of errors appear starting with:</p>
  
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  </code></pre>
  
  <p>etc. etc. When I use CTRL+D, select Y to kill the Python, the file is quite surprisingly written correctly. This is suffcient for our needs. However, is there any way to ignore the error and just proceed further with the code? I looked at the forum for solutions but non of them seems to fit my situation. Also, I am not keen on Python, thus would be grateful for a working solution. With many thanks.</p>