<s>[INST] How to print an error in Python? try:
    something here
except:
    print 'the whatever error occurred.'

How can I print the error in my except: block?
 [/INST] except Exception,e: print str(e)

 </s>