diff --git a/crossechoTangoDev/Crossecho.py b/crossechoTangoDev/Crossecho.py
index 4b7287eb95e62b0d51be71dfcb30d9c2aa1012a5..08f18bdfbca3d8f5e366eafbbeb83ead8c3cb23b 100644
--- a/crossechoTangoDev/Crossecho.py
+++ b/crossechoTangoDev/Crossecho.py
@@ -95,9 +95,9 @@ class Crossecho(Device):
             self.opc_obj = self.client.get_root_node().get_child(["0:Objects",
                                                 "{}:StationMetrics".format(idx),
                                                 "{}:RCU".format(idx)])
-            print("Connected to the OPC-UA server %s", self.OPC_Server_Name)
-        except:
-            print("Failed to connect to the OPC-UA server %s.  Traceback: %s", self.OPC_Server_Name, traceback.format_exc())
+            print("Connected to the OPC-UA server %s" % (self.OPC_Server_Name))
+        except Exception as e:
+            print("Failed to connect to the OPC-UA server %s.  Traceback: %s" % (self.OPC_Server_Name, traceback.format_exc()))
             self.delete_device()
         # PROTECTED REGION END #    //  Crossecho.init_device