Skip to content

[bug 818908] Fix ValueError#998

Closed
willkg wants to merge 1 commit intomozilla:masterfrom
willkg:value-error-fix-818908
Closed

[bug 818908] Fix ValueError#998
willkg wants to merge 1 commit intomozilla:masterfrom
willkg:value-error-fix-818908

Conversation

@willkg
Copy link
Copy Markdown
Member

@willkg willkg commented Dec 11, 2012

product.get('products') can return None in the Sync and Other product
cases and then Django gets fussy. This tweaks that so that we only
apply the filter if product has a products list.

Also, I fixed 3 pep-8 issues.

@rlr Can you look this over and make sure it's ok? I'm pretty sure this is correct, but you wrote that code and would know better. r?

product.get('products') can return None in the Sync and Other product
cases and then Django gets fussy. This tweaks that so that we only
apply the filter if product has a products list.

Also, I fixed 3 pep-8 issues.
@rlr
Copy link
Copy Markdown
Contributor

rlr commented Dec 11, 2012

Looks good! Thanks for the code style fixes as well! r+

@willkg
Copy link
Copy Markdown
Member Author

willkg commented Dec 11, 2012

Landed in f11c6b0

@willkg willkg closed this Dec 11, 2012
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