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

Function _safe_exists

IPython/core/display.py:56–61  ·  view source on GitHub ↗

Check path, but don't let exceptions raise

(path)

Source from the content-addressed store, hash-verified

54#-----------------------------------------------------------------------------
55
56def _safe_exists(path):
57 """Check path, but don't let exceptions raise"""
58 try:
59 return os.path.exists(path)
60 except Exception:
61 return False
62
63
64def _display_mimetype(mimetype, objs, raw=False, metadata=None):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…