MCPcopy
hub / github.com/gitless-vcs/gitless / error_on_none

Function error_on_none

gitless/core.py:61–65  ·  view source on GitHub ↗

Raise a KeyError if the ```path``` argument is None.

(path)

Source from the content-addressed store, hash-verified

59
60
61def error_on_none(path):
62 """Raise a KeyError if the ```path``` argument is None."""
63 if path is None:
64 raise KeyError('path')
65 return path
66
67
68def init_repository(url=None):

Callers 2

init_repositoryFunction · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected