diff -r 922f0d84f869 -r 1c04a50dc7ff PLCGenerator.py --- a/PLCGenerator.py Wed Oct 10 10:50:00 2018 +0300 +++ b/PLCGenerator.py Thu Oct 11 09:41:15 2018 +0300 @@ -1027,7 +1027,7 @@ try: self.GenerateBlock(instance, block_infos, body, None) except ValueError as e: - raise PLCGenException(e.message) + raise PLCGenException(str(e)) elif isinstance(instance, ConnectorClass): connector = instance.getname() if self.ComputedConnectors.get(connector, None): @@ -1305,7 +1305,7 @@ try: paths.append(str(self.GenerateBlock(next, block_infos, body, connection, order, to_inout))) except ValueError as e: - raise PLCGenException(e.message) + raise PLCGenException(str(e)) elif isinstance(next, ContinuationClass): name = next.getname() computed_value = self.ComputedConnectors.get(name, None)