Skip to content

Commit e0d1d29

Browse files
committed
Handling collectibles to not crash
1 parent 9819d4f commit e0d1d29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stream_simulator/world.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@ def actors_lookup(self):
379379
}
380380
for type_ in self.actors:
381381
actors = self.actors[type_]
382+
if type_ not in mapping:
383+
self.logger.error("Actor type %s does not exist", type_)
384+
continue
382385
for act in actors:
383386
c = mapping[type_](conf = act, package = p, precision_mode = self.precision_mode)
384387
if c.name in self.actors:

0 commit comments

Comments
 (0)