def raise_error(self):
    'Reraises error if `success` is `False`, otherwise does nothing'
    if (self.error_before_exec is not None):
        raise self.error_before_exec
    if (self.error_in_exec is not None):
        raise self.error_in_exec
Reraises error if `success` is `False`, otherwise does nothing
def raise_error(self):
    
    if (self.error_before_exec is not None):
        raise self.error_before_exec
    if (self.error_in_exec is not None):
        raise self.error_in_exec