Bit more debugging on crashing story
This commit is contained in:
parent
c64e2328e0
commit
9d8752ef7c
1 changed files with 8 additions and 3 deletions
|
@ -1022,9 +1022,14 @@ class Story(object):
|
||||||
self.reset()
|
self.reset()
|
||||||
|
|
||||||
for el in self.data:
|
for el in self.data:
|
||||||
className = storyClasses[el['@type']]
|
try:
|
||||||
obj = className.initFromJson(el, self)
|
className = storyClasses[el['@type']]
|
||||||
self.add(obj)
|
obj = className.initFromJson(el, self)
|
||||||
|
self.add(obj)
|
||||||
|
except Exception as e:
|
||||||
|
self.logger.critical(f"Error loading story element: {el}")
|
||||||
|
self.logger.exception(e)
|
||||||
|
raise e
|
||||||
|
|
||||||
# self.logger.debug(self.elements)
|
# self.logger.debug(self.elements)
|
||||||
# self.logger.debug(self.directionsPerMsg)
|
# self.logger.debug(self.directionsPerMsg)
|
||||||
|
|
Loading…
Reference in a new issue