Skip to content
Snippets Groups Projects
Commit a293f349 authored by Jan David Mol's avatar Jan David Mol
Browse files

Move this change to another branch

parent 5188ba45
No related branches found
No related tags found
1 merge request!74Resolve L2SS-299 "Disable bandit warning"
...@@ -227,6 +227,7 @@ class ProtocolAttribute: ...@@ -227,6 +227,7 @@ class ProtocolAttribute:
try: try:
self.node.set_data_value(opcua.ua.uatypes.Variant(value=value, varianttype=self.ua_type)) self.node.set_data_value(opcua.ua.uatypes.Variant(value=value, varianttype=self.ua_type))
raise TypeError
except (TypeError, opcua.ua.uaerrors.BadTypeMismatch) as e: except (TypeError, opcua.ua.uaerrors.BadTypeMismatch) as e:
# A type conversion went wrong or there is a type mismatch. # A type conversion went wrong or there is a type mismatch.
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment