Closed ryankask closed 5 years ago
Asset.__repr__() utilises Asset.url() which depends on file instance attribute.
Asset.__repr__()
Asset.url()
file
If the asset is optional and not set, the object cannot be represented: 'contentful.asset.Asset object' has no attribute 'file'.
'contentful.asset.Asset object' has no attribute 'file'
Hey @ryankask,
The fix has been released in v1.12.2.
v1.12.2
Cheers
Asset.__repr__()
utilisesAsset.url()
which depends onfile
instance attribute.If the asset is optional and not set, the object cannot be represented:
'contentful.asset.Asset object' has no attribute 'file'
.