contentful / contentful.py

Python client for the Contentful Content Delivery API https://www.contentful.com/developers/documentation/content-delivery-api/
MIT License
45 stars 39 forks source link

Optional linked assets cannot be represented #48

Closed ryankask closed 5 years ago

ryankask commented 5 years ago

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 commented 5 years ago

Hey @ryankask,

The fix has been released in v1.12.2.

Cheers