- if chunk.book.project is not None:
- if chunk.book.project.logo_mono or chunk.book.project.logo:
- kwargs['cover_logo'] = (chunk.book.project.logo_mono or chunk.book.project.logo).path
+ if self.project is not None:
+ if self.project.logo_mono or self.project.logo:
+ kwargs['cover_logo'] = (self.project.logo_mono or self.project.logo).path