[mod_python] register cleanup works fine, the call to the cleanup function fails...

Martijn Moeling martijn at xs4us.nu
Tue Nov 28 07:38:21 EST 2006


Solved, it turns out that I manually corrupted the data in one of the
records

 

________________________________

Van: mod_python-bounces at modpython.org
[mailto:mod_python-bounces at modpython.org] Namens Martijn Moeling
Verzonden: Tuesday, November 28, 2006 1:12 PM
Aan: mod_python at modpython.org
Onderwerp: [mod_python] register cleanup works fine,the call to the
cleanup function fails...

 

Hi

 

Whilst testing my MySQLSession object I temporarily set the
CLEANUP_CHANCE to 1 for force it to run

 

 

def MySLQ_cleanup(req):

...

...

...

 

The register_cleanup function runs fine... but the call by the cleanup
routines fails with an Error I cannot find. 

 

    def do_cleanup(self):

        self._req.register_cleanup(MySQL_cleanup, self._req)

        self._req.log_error("MySQLSession: registered session
cleanup.",apache.APLOG_NOTICE)

 

[Tue Nov 28 12:37:42 2006] [notice] [client xxx.xxx.xxx] MySQLSession:
registered session cleanup.

[Tue Nov 28 12:37:42 2006] [error] [client xxx.xxx.xxx.xxx]
python_cleanup: Error calling cleanup object <function MySQL_cleanup at
0xb7e0eed4>

[Tue Nov 28 12:37:42 2006] [error] [client xxx.xxx.xxx.xxx]
exceptions.ValueError: could not convert string to float

 

Python 2.4, mod_python 3.2.10 running on fedora 4 and Apache/2.0.54

 

Any suggestions?

 

Martijn

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20061128/e765d2e3/attachment.html


More information about the Mod_python mailing list