Example #1
0
 def exc_info(self):
     """
     The three-tuple of exception information if :meth:`set_exception` was called.
     """
     if self._exc_info:
         return (self._exc_info[0], self._exc_info[1], load_traceback(self._exc_info[2]))
     return ()
Example #2
0
 def exc_info(self):
     """
     The three-tuple of exception information if :meth:`set_exception` was called.
     """
     if self._exc_info:
         return (self._exc_info[0], self._exc_info[1], load_traceback(self._exc_info[2]))
     return ()
Example #3
0
    def exc_info(self):
        """
        Holds the exc_info three-tuple raised by the function if the
        greenlet finished with an error. Otherwise a false value.

        .. note:: This is a provisional API and may change.

        .. versionadded:: 1.1
        """
        ei = self._exc_info
        if ei is not None and ei[0] is not None:
            return (ei[0], ei[1], load_traceback(ei[2]))
Example #4
0
    def exc_info(self):
        """
        Holds the exc_info three-tuple raised by the function if the
        greenlet finished with an error. Otherwise a false value.

        .. note:: This is a provisional API and may change.

        .. versionadded:: 1.1
        """
        e = self._exc_info
        if e and e[0] is not None:
            return (e[0], e[1], load_traceback(e[2]))
Example #5
0
 def exc_info(self):
     """Holds the exc_info three-tuple raised by the function if the greenlet finished with an error.
     Otherwise a false value."""
     e = self._exc_info
     if e:
         return (e[0], e[1], load_traceback(e[2]))
 def exc_info(self):
     """Holds the exc_info three-tuple raised by the function if the greenlet finished with an error.
     Otherwise a false value."""
     e = self._exc_info
     if e:
         return (e[0], e[1], load_traceback(e[2]))
Example #7
0
 def _raise_exception(self):
     if self._exc_info:
         reraise(self._exc_info[0], self._exc_info[1], load_traceback(self._exc_info[2]))
     raise self._exception
Example #8
0
 def _raise_exception(self):
     if self._exc_info:
         reraise(self._exc_info[0], self._exc_info[1], load_traceback(self._exc_info[2]))
     raise self._exception