- try:
- self.conditionalFunction() # check, if the conditionalfunction is still valid
- except:
- self.conditionalFunction = None
- self.activateCondition(False)
+ if (self.setConnect != None):
+ try:
+ self.conditionalFunction() # check, if the conditionalfunction is still valid
+ except:
+ self.conditionalFunction = None
+ self.activateCondition(False)