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

fix error where an intermediate None value was breaking jinja2 for git #1088

Merged
merged 1 commit into from
Jul 5, 2016

Conversation

msarahan
Copy link
Contributor

@msarahan msarahan commented Jul 3, 2016

Fixes #1087

Thanks @elehcim for pointing this out and helping with the test case.

@msarahan msarahan merged commit e59d99e into conda:1.21.x Jul 5, 2016
@msarahan msarahan deleted the fix_jinja2_int_error branch July 5, 2016 12:22
return int(self.get_value('build/number', 0))
number = self.get_value('build/number', 0)
# build number can come back as None if no setting (or jinja intermediate)
return int(number) if number else 0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

else 0 should be None here, so that build_number triggers jinja invalid messages.

msarahan added a commit to msarahan/conda-build that referenced this pull request Jul 5, 2016
…umber_api

Improvement to conda#1088. Returns None instead of 0 when no build number …
msarahan pushed a commit that referenced this pull request Jul 5, 2016
…provided to trigger Jinja2 debugging help. Alerts users when invalid string like 'abc' passed instead of integer build number
@github-actions github-actions bot added the locked [bot] locked due to inactivity label May 15, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant