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

Optional linked assets cannot be represented #48

Closed
ryankask opened this issue Jul 2, 2019 · 1 comment · Fixed by #49
Closed

Optional linked assets cannot be represented #48

ryankask opened this issue Jul 2, 2019 · 1 comment · Fixed by #49

Comments

@ryankask
Copy link

ryankask commented Jul 2, 2019

Asset.__repr__() utilises Asset.url() which depends on file instance attribute.

If the asset is optional and not set, the object cannot be represented: 'contentful.asset.Asset object' has no attribute 'file'.

@dlitvakb
Copy link
Contributor

dlitvakb commented Jul 8, 2019

Hey @ryankask,

The fix has been released in v1.12.2.

Cheers

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 a pull request may close this issue.

2 participants