title: Exception handling of a function in Python
body: <p>Suppose I have a function definiton:</p>
  
  <pre><code>def test():
      print 'hi'
  </code></pre>
  
  <p>I get a TypeError whenever I gives an argument.</p>
  
  <p>Now, I want to put the def statement in try. How do I do this?</p>