Skip to content

Commit 6d653bb

Browse files
authored
Fix Atomic_behaviors AddActor Func
No return status
1 parent 38fd9e7 commit 6d653bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

srunner/scenariomanager/scenarioatomics/atomic_behaviors.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -4593,7 +4593,9 @@ def update(self):
45934593
new_status = py_trees.common.Status.SUCCESS
45944594
except: # pylint: disable=bare-except
45954595
print("ActorSource unable to spawn actor")
4596-
4596+
new_status = py_trees.common.Status.FAILURE
4597+
finally:
4598+
return new_status
45974599

45984600
class SwitchWrongDirectionTest(AtomicBehavior):
45994601

0 commit comments

Comments
 (0)