diff options
Diffstat (limited to 'src/main/python/utils/UnitOperations.py')
-rw-r--r-- | src/main/python/utils/UnitOperations.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/python/utils/UnitOperations.py b/src/main/python/utils/UnitOperations.py index 2b16c7d..86a1ad7 100644 --- a/src/main/python/utils/UnitOperations.py +++ b/src/main/python/utils/UnitOperations.py @@ -177,8 +177,10 @@ class UnitOperation(): strcount += 1 else: #print("self.output_stms ", self.output_stms) - self.OM_data_eqn += ('connect(' + self.name + '.Out,' + self.output_stms[1].name + '.In);\n') - + try: + self.OM_data_eqn += ('connect(' + self.name + '.Out,' + self.output_stms[1].name + '.In);\n') + except: + pass if self.mode: self.OM_data_eqn += (self.name + '.' + self.mode + '=' + str(self.mode_val) + ';\n') |