Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matijakolaric authored Mar 7, 2019
1 parent d235364 commit 5d300e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion music_publisher/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 5d300e5

Please sign in to comment.