# HG changeset patch # User Laurent Bessard # Date 1375745354 -7200 # Node ID fa77f3b8f18274028cc187ee25ad902761742d8a # Parent abf63a3105326987462bc049144c69ef38ffd3fb Fixed bug when no connection defined for connectionPointIn diff -r abf63a310532 -r fa77f3b8f182 plcopen/plcopen.py --- a/plcopen/plcopen.py Tue Aug 06 01:28:42 2013 +0200 +++ b/plcopen/plcopen.py Tue Aug 06 01:29:14 2013 +0200 @@ -2801,6 +2801,7 @@ def getconnections(self): if self.content: return self.content["value"] + return [] setattr(cls, "getconnections", getconnections) def setconnectionId(self, idx, id): @@ -2822,7 +2823,7 @@ def getconnectionPoints(self, idx): if self.content: return self.content["value"][idx].getpoints() - return None + return [] setattr(cls, "getconnectionPoints", getconnectionPoints) def setconnectionParameter(self, idx, parameter):