Incorporating Fredrik's fix (I learned something new reading 
that), try using an endless loop even if there is an exception 
like this:

     def run(self):
         while True:
             try:
                 <start an SMTP-Server
                 asyncore.loop()
             except:
                 e = sys.exc_value()
                 <write exception in log>
                 <kill the SMTP server off>
                 time.sleep(60) # wait, avoid spinning

so that even if there is an exception, it'll get up and go again.

Steve
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to