From fae065693576593c2f86cdcd349db98a51339333 Mon Sep 17 00:00:00 2001 From: Dorian Soergel Date: Wed, 5 Jun 2019 13:39:13 +0200 Subject: [PATCH] still dealing with cases where no parent composer --- beetsplug/parentwork.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/beetsplug/parentwork.py b/beetsplug/parentwork.py index 2ee6739d9..76a98fc08 100644 --- a/beetsplug/parentwork.py +++ b/beetsplug/parentwork.py @@ -174,8 +174,13 @@ add one at https://musicbrainz.org/recording/{}', item, item.mb_trackid) self._log.debug("error fetching work: {}", e) return parent_info = self.get_info(item, work_info) - self._log.debug("Work fetched: {} - {}", parent_info['parentwork'], - parent_info['parent_composer']) + if 'parent_composer' in parent_info: + self._log.debug("Work fetched: {} - {}", + parent_info['parentwork'], + parent_info['parent_composer']) + else: + self._log.debug("Work fetched: {} - no parent composer", + parent_info['parentwork']) elif hasparent: self._log.debug("{} : Work present, skipping", item)