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