Skip to content

Commit 3fedcac

Browse files
committed
smach_viewer/scripts/smach_viewer.py: skip if container._local_data._data, is not dict type
1 parent c6e12b0 commit 3fedcac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

smach_viewer/scripts/smach_viewer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,9 @@ def selection_changed(self, event):
484484

485485
# Generate the userdata string
486486
ud_str = ''
487+
if not isinstance(container._local_data._data, dict):
488+
rospy.logwarn("userdata is not dictionary({}), please fix sender proram".format(container._local_data._data))
489+
container._local_data._data = {}
487490
for (k,v) in container._local_data._data.items():
488491
ud_str += str(k)+": "
489492
vstr = str(v)

0 commit comments

Comments
 (0)