Skip to content

Fixed configurations default value. #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 1, 2024

Conversation

jppdpf
Copy link
Collaborator

@jppdpf jppdpf commented Mar 22, 2024

No description provided.

@jppdpf jppdpf requested a review from mlourencoeb March 22, 2024 18:02
yk_face/face.py Outdated
@@ -96,6 +97,7 @@ async def process_async(
:raises:
ValueError if image is not provided.
"""
configurations = configurations or []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also raise an exception if processings is empty or null.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was moved to other function to avoid duplication.

yk_face/face.py Outdated
@@ -70,6 +70,7 @@ def process(
:raises:
ValueError if image is not provided.
"""
configurations = configurations or []
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also raise an exception if processings is empty or null.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was moved to other function to avoid duplication.

@mlourencoeb mlourencoeb merged commit 43da8c6 into master Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants