Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #47 from TimJones/master
Browse files Browse the repository at this point in the history
Catch KeyErrors when trying to load manifest
  • Loading branch information
Daniel Holbach committed Oct 5, 2021
2 parents 76cc4a0 + 720ec60 commit 5b99440
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kubedifflib/_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def load_config(*paths):
continue
with open(path, 'r') as stream:
data = yaml.safe_load(stream)
kube_obj = KubeObject.from_dict(data)
try:
kube_obj = KubeObject.from_dict(data)
except KeyError:
continue
objects[kube_obj] = data
return objects

Expand Down

0 comments on commit 5b99440

Please sign in to comment.