def _get_traceback(self, exc_info):
    "Helper function to return the traceback as a string"
    import traceback
    ret = '\n'.join(traceback.format_exception(*(exc_info or sys.exc_info())))
    try:
      return ret.decode('utf-8')
    except __HOLE__:
      return ret
dataset/ETHPy150Open IanLewis/kay/kay/app.py/KayApp._get_traceback