+ try:
+ cover_url = self.doc.meta.get(DCNS('relation.coverimage.url'))[0]
+ except IndexError:
+ raise BuildError('No cover specified (metadata field relation.coverimage.url missing)')
+ if not cover_url:
+ raise BuildError('No cover specified (metadata field relation.coverimage.url empty)')