MCPcopy Create free account
hub / github.com/ipython/ipython / raise_error

Method raise_error

IPython/core/interactiveshell.py:326–331  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls