def _callProcessExited(self, reason):
        default = object()
        processExited = getattr(self.proto, 'processExited', default)
        if processExited is default:
            getWarningMethod()(
                _missingProcessExited % (qual(self.proto.__class__),),
                DeprecationWarning, stacklevel=0)
        else:
            try:
                processExited(Failure(reason))
            except:
                err(None, "unexpected error in processExited")
dataset/ETHPy150Open twisted/twisted/twisted/internet/_baseprocess.py/BaseProcess._callProcessExited/original