podhmo/dictknife

jsonknife accessor, need WrappedError

podhmo opened this issue · 1 comments

hmm.

FileNotFoundError("[Errno 2] No such file or directory: 'cwd/example_linter/right.yaml' (where=cwd/example_linter/right.yaml) (where=cwd/example_linter/ng-pair.yaml)")

the error something like above, created by here.

where = None
if len(self.stack) > 1:
where = self.stack[-2].name
exc = e.__class__("{} (where={})".format(e, where)).with_traceback(
e.__traceback__
)
exc.__dict__.update(e.__dict__) # sync
raise exc from None

and here.

except Exception as e:
try:
exc = e.__class__("{} (where={})".format(e, self.name)).with_traceback(
e.__traceback__
)
exc.__dict__.update(e.__dict__) # sync
except Exception:
raise e from None
raise exc from None