diff options
author | brenda-br | 2023-03-10 11:03:13 +0530 |
---|---|---|
committer | brenda-br | 2023-03-10 11:11:25 +0530 |
commit | c42c4267f9dd5763a0b7740aad8855faa452e9db (patch) | |
tree | e8e130bd4f8ab2d15ab789bf13c676d14391e2b5 /src/main/python/utils/UnitOperations.py | |
parent | a427629ff7f678f5e77f2c15edfa07b3d021c90f (diff) | |
download | Chemical-Simulator-GUI-c42c4267f9dd5763a0b7740aad8855faa452e9db.tar.gz Chemical-Simulator-GUI-c42c4267f9dd5763a0b7740aad8855faa452e9db.tar.bz2 Chemical-Simulator-GUI-c42c4267f9dd5763a0b7740aad8855faa452e9db.zip |
Fix #67 Show Warning When Connection Not Properly Made and Some Minor Changes
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') |