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

fixes image injection on build crash when relation is not loaded #3

Merged
merged 2 commits into from Apr 19, 2016

Conversation

tsilva
Copy link
Contributor

@tsilva tsilva commented Apr 19, 2016

will do same fix in sadapters in case this one is accepted

@@ -76,7 +78,7 @@ def _get_images(cls, model, size = "thumbnail", sort = True):
sizes = cls._sizes(size)
_images = []
for image in images:
if not image: continue
if not image or not type(image) == types.DictType: continue
Copy link
Contributor

Choose a reason for hiding this comment

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

isinstance(image, dict)

types module for a while now

@tsilva
Copy link
Contributor Author

tsilva commented Apr 19, 2016

@joamag fixed

@joamag joamag merged commit 1fd891e into master Apr 19, 2016
@tsilva tsilva deleted the dev_tsilva_product_images_fix branch April 19, 2016 11:29
@coveralls
Copy link

coveralls commented May 15, 2018

Coverage Status

Coverage remained the same at ?% when pulling 23b6e88 on dev_tsilva_product_images_fix into 96318a4 on master.

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

Successfully merging this pull request may close these issues.

None yet

3 participants