java's printStackTrace() equivalent in python
<p>I am new to python.. I want to print the error message but I don't want the program to stop executing, I understand that I have to do something like this</p>

<pre><code>try:
    1/0
except: 
    print errorMessage
</code></pre>

<p>In the except part, I am looking to put something like java's printStackTrace()</p>
