curio/task.py
def exception(self):
        '''
        Return any pending exception of a task or None.
        '''
        if not self.terminated:
            raise RuntimeError('Task not terminated')
        return self._final_exc

        Return any pending exception of a task or None.
        
Return any pending exception of a task or None.
Return any pending exception of a task or None .
def exception(self):
        if not self.terminated:
            raise RuntimeError('Task not terminated')
        return self._final_exc
def exception ( self ) : if not self . terminated : raise RuntimeError ( 'Task not terminated' ) return self . _final_exc
Return any pending exception of a task or None.
Return any pending exception of a task or None .
'''
        Return any pending exception of a task or None.
        '''
self