We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fbe959 commit e40ab75Copy full SHA for e40ab75
chamberconnectlibrary/watlowf4t.py
@@ -852,10 +852,8 @@ def prgm_delete(self, N):
852
self.client.write_holding(18888, N) #set active profile
853
self.client.write_holding(18890, self.inv_watlow_val_dict('delete')) #delete profile
854
except ModbusError, exp:
855
- if 'Exception code = 4' in exp.message:
856
- pass # the program does not exist consume the exception
857
- else:
858
- raise # something else went wrong pass the exception on up.
+ exp.message = 'Cannot delete program. (original message: %s)' % exp.message
+ raise # something else went wrong pass the exception on up.
859
860
@exclusive
861
def sample(self, lookup=None):
0 commit comments