diff --git a/devices/clients/opcua_client.py b/devices/clients/opcua_client.py
index dc85a6f4fe645fdb9b7c47e46e2e78a42bbcf41f..ac66f470613194101c41784adea6889003cc1cfb 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.
             #
diff --git a/devices/tox.ini b/devices/tox.ini
index 26738468dc9f5fdbfe9b25af86c682c86c831c68..18c6cda38751d7bc447e8fb23d92e63b64288ddb 100644
--- a/devices/tox.ini
+++ b/devices/tox.ini
@@ -24,9 +24,13 @@ commands =
 ;    doc8 doc/source/ README.rst
     flake8
 
-[testenv:bandit]
+[testenv:bandit];
+; B104: hardcoded_bind_all_interfaces
+;           - We disable this warning as Docker serves as our firewall.
+;             It thus matters what interfaces Docker will bind our
+;             containers to, not what our containers listen on.
 commands =
-    bandit -r devices/ clients/ common/ examples/ util/ -n5 -ll
+    bandit -r devices/ clients/ common/ examples/ util/ -n5 -ll -s B104
 
 [flake8]
 filename = *.py,.stestr.conf,.txt