Skip to content

Commit

Permalink
Ensure we collect default slot value even if we don't have other info
Browse files Browse the repository at this point in the history
  • Loading branch information
peternewman committed Dec 26, 2018
1 parent d17eb14 commit 59194ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rdm/ModelCollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def _HandleSlotDefaultValue(self, data):
"""Called when we get a DEFAULT_SLOT_VALUE response."""
for slot in data['slot_values']:
this_slot_data = self._GetSlotData(slot['slot_offset'])
if this_slot_data:
if this_slot_data is not None:
this_slot_data['default_value'] = slot['default_slot_value']
self._NextState()

Expand Down

0 comments on commit 59194ba

Please sign in to comment.