Java had this feature since the last millenium (java 1.3, i think). I really miss it programming in python 2.7.
import sys,traceback
try:
...
except Exception as ex:
exc_type, exc_value, exc_traceback = sys.exc_info()
logger.error("%s:%s" % (str(ex), str(traceback.format_exception(exc_type, exc_value, exc_traceback))))
raise MyException(" :( ")