Raise a KeyError if the ```path``` argument is None.
(path)
| 59 | |
| 60 | |
| 61 | def 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 | |
| 68 | def init_repository(url=None): |
no outgoing calls
no test coverage detected