Skip to content

Commit

Permalink
address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess authored and gtsystem committed Jul 16, 2023
1 parent 5152c5a commit a30ed35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightkube/codecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _flatten(objects: Iterator) -> List[AnyResource]:
for obj in objects:
if obj is None:
continue
if isinstance(obj, Mapping) and obj.get("kind").endswith("List"):
if isinstance(obj, Mapping) and obj.get("kind", "").endswith("List"):
resources += _flatten(obj.get("items") or [])
else:
res = from_dict(obj)
Expand Down

0 comments on commit a30ed35

Please sign in to comment.