Browse Source

Check for valid types in `add_object`

pull/121/head
Adam Johnson 6 years ago
parent
commit
2ebf872fda
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 1
      korman/exporter/manager.py

1
korman/exporter/manager.py

@ -90,6 +90,7 @@ class ExportManager:
name = bl.name name = bl.name
else: else:
name = so.key.name name = so.key.name
assert issubclass(pl, hsKeyedObject)
pl = pl(name) pl = pl(name)
self.AddObject(location, pl) self.AddObject(location, pl)

Loading…
Cancel
Save