author | Andrey Skvortsov <andrej.skvortzov@gmail.com> |
Thu, 09 Aug 2018 13:58:47 +0300 | |
changeset 2275 | 1bb8afa02409 |
parent 2274 | 5cb9ef5351cc |
child 2276 | ba0fc3e73ce2 |
PLCGenerator.py | file | annotate | diff | comparison | revisions |
--- a/PLCGenerator.py Wed Aug 01 14:09:12 2018 +0300 +++ b/PLCGenerator.py Thu Aug 09 13:58:47 2018 +0300 @@ -926,6 +926,9 @@ if blk is None: return None + if not hasattr(blk, "inputVariables"): + return None + for invar in blk.inputVariables.getvariable(): if invar.getformalParameter() == "EN": if len(invar.getconnectionPointIn().getconnections()) > 0: