fixed crash when nothing was implemented for a source

This commit is contained in:
Hellow 2023-08-28 21:01:21 +02:00
parent c18ac58bd2
commit 2da7459595

View File

@ -75,6 +75,9 @@ class Pages:
return music_object return music_object
for source_page in music_object.source_collection.source_pages: for source_page in music_object.source_collection.source_pages:
if source_page not in self._source_to_page:
continue
page_type = self._source_to_page[source_page] page_type = self._source_to_page[source_page]
if page_type in self._pages_set: if page_type in self._pages_set: