Mod_python error: "PythonHandler webshop"

Traceback (most recent call last):

  File "C:\Python24\lib\site-packages\mod_python\apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "C:/www/script/\webshop.py", line 58, in handler
    i=shop.Shop(ctx)

  File "C:/www/script/\shop.py", line 41, in __init__
    self.webroot=self.registryDB.get("webroot")

  File "C:\www\script\sqlcon.py", line 306, in get
    anz = self.cur.execute(cmd)

  File "C:\Python24\lib\site-packages\MySQLdb\cursors.py", line 137, in execute
    self.errorhandler(self, exc, value)

  File "C:\Python24\lib\site-packages\MySQLdb\connections.py", line 33, in defaulterrorhandler
    raise errorclass, errorvalue

OperationalError: (2013, 'Lost connection to MySQL server during query')