def get_last_traceback():
import traceback<EOL>from StringIO import StringIO<EOL>tb = StringIO()<EOL>traceback.print_exc(file=tb)<EOL>return to_unicode(tb.getvalue())<EOL>
Retrieve the last traceback as an `unicode` string.