WebwareForPython / DBUtils

Database connections for multi-threaded environments
MIT License
335 stars 52 forks source link

thread_pool use PooledDB InvalidConnection #20

Closed QscvGYU closed 5 years ago

QscvGYU commented 5 years ago
def __getattr__(self, name):
    """Proxy all members of the class."""
    if self._con:
        return getattr(self._con, name)
    else:
        raise InvalidConnection

name = 'commit'

Cito commented 5 years ago

Looks like you commit on a shared or dedicated connection that has been closed.

Please send a complete reproducible test case, explain what you expect and what happened instead.