Fil wrote: > >Unfortunately this still doesn't succeed reconnecting to the server: I get >this traceback: > > File "/var/local/mailman/Mailman/MysqlMemberships.py", line 141, in > _prodServerConnection > if self.connection.ping() == 0: OperationalError: (2006, 'MySQL server has > gone away')
Apparently the ping() method is not the way to test if the connection is still viable. I suppose you could wrap it in a try: and treat the exception the same as a non-zero result, but I don't know if that's appropriate. I don't think I can be of further help on this one. Sorry. You need someone who's familiar with the methods in the MySQLdb module. Maybe Kev Green can help. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan _______________________________________________ Mailman-Developers mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-developers Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
