diff --git a/music_publisher/models.py b/music_publisher/models.py index a6b43cf9..3086e679 100644 --- a/music_publisher/models.py +++ b/music_publisher/models.py @@ -662,7 +662,7 @@ def yield_lines(self): pass try: album = work.firstrecording.album_cd - if album.cd_identifier: + if album and album.cd_identifier: yield self.get_transaction_record('ORN', { 'library': album.library, 'cd_identifier': album.cd_identifier})