Method
_load
(self, parser_func, file_path)
Source from the content-addressed store, hash-verified
| 264 | return result |
| 265 | |
| 266 | def _load(self, parser_func, file_path): |
| 267 | with open(file_path, "r", encoding="utf-8") as fd: |
| 268 | try: |
| 269 | return parser_func(fd) |
| 270 | except ValueError: |
| 271 | LOG.exception("Failed loading content from %s.", file_path) |
| 272 | raise |
| 273 | except ParserError: |
| 274 | LOG.exception("Failed loading content from %s.", file_path) |
| 275 | raise |
| 276 | |
| 277 | |
| 278 | class OverrideLoader(object): |
Tested by
no test coverage detected