Skip to content

Commit

Permalink
Fix loading pb with invalid CV addressings from missing plugins
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Sep 28, 2024
1 parent 1ae8bf4 commit 6e57ecc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mod/addressings.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,12 @@ def registerMappings(self, msg_callback, instances):
for actuator_uri, addrs in self.cv_addressings.items():
# pluginData = self._task_get_plugin_data(instance_id)
if not self.is_hw_cv_port(actuator_uri):
operational_mode = self._task_get_plugin_cv_port_op_mode(actuator_uri)
msg_callback("add_cv_port %s %s %s" % (actuator_uri, addrs['name'].replace(" ","_"), operational_mode))
try:
operational_mode = self._task_get_plugin_cv_port_op_mode(actuator_uri)
except KeyError:
pass
else:
msg_callback("add_cv_port %s %s %s" % (actuator_uri, addrs['name'].replace(" ","_"), operational_mode))

# HMI
group_mappings = [] #{} if self.addressing_pages else []
Expand Down

0 comments on commit 6e57ecc

Please sign in to comment.