add check to avoid overwriting with None
This commit is contained in:
parent
183d9498d9
commit
3117cd7f89
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue