add check to avoid overwriting with None

This commit is contained in:
Flukx 2024-08-29 22:46:53 +02:00
parent 183d9498d9
commit 3117cd7f89

View file

@ -32,7 +32,7 @@ class Inventory(list[Thing]):
self.paths.images_landscape = "images_landscape"
self.paths.images_portrait = "images_portrait"
for thing in self:
if thing.location:
if thing.location and thing.location.schema:
self.schema = thing.location.schema
self.seperator = thing.location.seperator
break