Subversion Repositories SmartDukaan

Rev

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

Rev 4795 Rev 4796
Line 81... Line 81...
81
                if len(send_result) == 0:
81
                if len(send_result) == 0:
82
                    print "Sent at", time.time()
82
                    print "Sent at", time.time()
83
                    helper_client.markEmailAsSent(email.id)
83
                    helper_client.markEmailAsSent(email.id)
84
                else:
84
                else:
85
                    print "Failed sending email. Id:", " Time:", time.time()
85
                    print "Failed sending email. Id:", " Time:", time.time()
86
            except Exception:
86
            except Exception as e:
-
 
87
                print sys.exc_info()[0]
-
 
88
                print e
87
                print 'Error occurred sending emails. Will retry.'
89
                print 'Error occurred sending emails. Will retry.'
88
            
90
            
89
        self.email_schedular.enter(self.time_to_sleep, 1, self.send, ())
91
        self.email_schedular.enter(self.time_to_sleep, 1, self.send, ())
90
 
92
 
91
    def start(self):
93
    def start(self):