MCPcopy Index your code
hub / github.com/treeverse/dvc / handle_error

Function handle_error

dvc/database.py:111–117  ·  view source on GitHub ↗
(url: "URL")

Source from the content-addressed store, hash-verified

109
110@contextmanager
111def handle_error(url: "URL"):
112 try:
113 yield
114 except (ModuleNotFoundError, NoSuchModuleError) as e:
115 # TODO: write installation instructions
116 driver = url.drivername
117 raise DvcException(f"Could not load database driver for {driver!r}") from e
118
119
120@contextmanager

Callers 1

clientFunction · 0.70

Calls 1

DvcExceptionClass · 0.90

Tested by

no test coverage detected