MCPcopy Index your code
hub / github.com/ipython/ipython / raise_error

Method raise_error

IPython/core/interactiveshell.py:324–329  ·  view source on GitHub ↗

Reraises error if `success` is `False`, otherwise does nothing

(self)

Source from the content-addressed store, hash-verified

322 return (self.error_before_exec is None) and (self.error_in_exec is None)
323
324 def raise_error(self):
325 """Reraises error if `success` is `False`, otherwise does nothing"""
326 if self.error_before_exec is not None:
327 raise self.error_before_exec
328 if self.error_in_exec is not None:
329 raise self.error_in_exec
330
331 def __repr__(self):
332 name = self.__class__.__qualname__

Callers 4

safe_execfile_ipyMethod · 0.80
iprcFunction · 0.80

Calls

no outgoing calls

Tested by 3

iprcFunction · 0.64