def call_get_fargs(self, args, kwargs): try: fargs = self.get_fargs(*args, **kwargs) except RuntimeError: terms.errclear() raise ValueError return fargs
def call_get_fargs(self, args, kwargs): try: fargs = self.get_fargs(*args, **kwargs) except (RuntimeError, ValueError): terms.errclear() raise return fargs
def call_function(self, out, fargs): try: status = self.function(out, *fargs) except RuntimeError: terms.errclear() raise ValueError return status
def call_function(self, out, fargs): try: status = self.function(out, *fargs) except RuntimeError: terms.errclear() raise ValueError if status: terms.errclear() raise ValueError('term evaluation failed! (%s)' % self.name) return status
def call_function(self, out, fargs): try: status = self.function(out, *fargs) except (RuntimeError, ValueError): terms.errclear() raise if status: terms.errclear() raise ValueError('term evaluation failed! (%s)' % self.name) return status
def call_function(self, fargs): try: out, status = self.function(*fargs) except (RuntimeError, ValueError): terms.errclear() raise if status: terms.errclear() raise ValueError('term evaluation failed! (%s)' % self.name) return out, status