Skip to content
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

Now returning None if the currency is empty #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Now returning None if the currency is empty #92

wants to merge 1 commit into from

Conversation

NyanKiyoshi
Copy link
Contributor

No description provided.

@NyanKiyoshi NyanKiyoshi self-assigned this Aug 26, 2019
@@ -95,4 +95,7 @@ def compress(self, data_list: Optional[Tuple[Decimal, str]]) -> Optional[Money]:
if amount is None:
return None

if not currency:
return None
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be a validation error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants