Skip to content

Commit

Permalink
Fix exceptions handling in create_from_yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tomplus committed Jan 15, 2024
1 parent e8ce906 commit 8a9ddbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/example2.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async def main():
print("Ended.")
# An explicit close is necessary to stop the stream
# or use async context manager like in example4.py
w.close()
await w.close()


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion kubernetes_asyncio/utils/create_from_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def create_from_yaml(
**kwargs)
k8s_objects.append(created)
except FailToCreateError as failure:
api_exceptions.extend(failure)
api_exceptions.append(failure)

# In case we have exceptions waiting for us, raise them
if api_exceptions:
Expand Down

0 comments on commit 8a9ddbf

Please sign in to comment.