Subversion Repositories SmartDukaan

Rev

Rev 13121 | Rev 13202 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13121 Rev 13171
Line 102... Line 102...
102
        else:
102
        else:
103
            return "error"
103
            return "error"
104
        
104
        
105
    def send(self):
105
    def send(self):
106
        
106
        
107
        if self.count > 10:
107
        if self.count > 100:
108
            print str(self.count)
108
            print str(self.count)
109
            print "Number of failed attempts is more than 10. Exiting"
109
            print "Number of failed attempts is more than 100. Exiting"
110
            sys.exit()
110
            sys.exit()
111
            
111
            
112
        for smsId in self.exceptionCount.keys() :
112
        for smsId in self.exceptionCount.keys() :
113
            if self.exceptionCount[smsId] > 10:
113
            if self.exceptionCount[smsId] > 100:
114
                print "Number of exceptions for sms id : " + str(smsId) + " is : " + str(self.exceptionCount[smsId]) + ". Exiting"
114
                print "Number of exceptions for sms id : " + str(smsId) + " is : " + str(self.exceptionCount[smsId]) + ". Exiting"
115
                sys.exit()
115
                sys.exit()
116
        
116
        
117
        print "Despatch stared at ", datetime.datetime.now()
117
        print "Despatch stared at ", datetime.datetime.now()
118
        helperServiceClient = HelperClient()
118
        helperServiceClient = HelperClient()