# HG changeset patch
# User Edouard Tisserant <edouard.tisserant@gmail.com>
# Date 1724106059 -7200
# Node ID d2aecbb377ae4e4f500365e0c9e58bdbe311c659
# Parent  8d82aa6e9dd9de55af2545a8259b87fbc184659b
IDE: Fix exception when connecting complex types

diff -r 8d82aa6e9dd9 -r d2aecbb377ae PLCControler.py
--- a/PLCControler.py	Tue Aug 20 00:02:27 2024 +0200
+++ b/PLCControler.py	Tue Aug 20 00:20:59 2024 +0200
@@ -1373,7 +1373,8 @@
         return False
 
     def IsEndType(self, typename):
-        if typename is not None:
+        # Check if the type is a base type        
+        if type(typename) == str:
             return not typename.startswith("ANY")
         return True