From a293f349f765dc267b15e5f307e5ad529cf953d7 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Mon, 5 Jul 2021 08:42:54 +0000
Subject: [PATCH] Move this change to another branch

---
 devices/clients/opcua_client.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devices/clients/opcua_client.py b/devices/clients/opcua_client.py
index dc85a6f4f..ac66f4706 100644
--- a/devices/clients/opcua_client.py
+++ b/devices/clients/opcua_client.py
@@ -227,6 +227,7 @@ class ProtocolAttribute:
 
         try:
             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:
             # A type conversion went wrong or there is a type mismatch.
             #
-- 
GitLab