def get_exception_only(self, exc_tuple=None):
    '\n        Return as a string (ending with a newline) the exception that\n        just occurred, without any traceback.\n        '
    (etype, value, tb) = self._get_exc_info(exc_tuple)
    msg = traceback.format_exception_only(etype, value)
    return ''.join(msg)
Return as a string (ending with a newline) the exception that
just occurred, without any traceback.
def get_exception_only(self, exc_tuple=None):
    '\n        Return as a string (ending with a newline) the exception that\n        just occurred, without any traceback.\n        '
    (etype, value, tb) = self._get_exc_info(exc_tuple)
    msg = traceback.format_exception_only(etype, value)
    return .join(msg)