db.py
def filter_excepts(e):
            """DatabaseError saying that "error with no message from the libpq"
            if only DatabaseError that needs reloading connection"""
            if isinstance(e, psycopg2.OperationalError): return True
            if not isinstance(e, psycopg2.DatabaseError): return False
            if 'no message from the libpq' in e.message: return True
            if 'server closed the connection unexpectedly' in e.message: return True
            return False
DatabaseError saying that "error with no message from the libpq"
            if only DatabaseError that needs reloading connection
DatabaseError saying that "error with no message from the libpq"
if only DatabaseError that needs reloading connection
DatabaseError saying that " error with no message from the libpq " if only DatabaseError that needs reloading connection
def filter_excepts(e):
            if isinstance(e, psycopg2.OperationalError): return True
            if not isinstance(e, psycopg2.DatabaseError): return False
            if 'no message from the libpq' in e.message: return True
            if 'server closed the connection unexpectedly' in e.message: return True
            return False
def filter_excepts ( e ) : if isinstance ( e , psycopg2 . OperationalError ) : return True if not isinstance ( e , psycopg2 . DatabaseError ) : return False if 'no message from the libpq' in e . message : return True if 'server closed the connection unexpectedly' in e . message : return True return False
DatabaseError saying that "error with no message from the libpq"
if only DatabaseError that needs reloading connection
DatabaseError saying that " error with no message from the libpq " if only DatabaseError that needs reloading connection
"""DatabaseError saying that "error with no message from the libpq"
            if only DatabaseError that needs reloading connection"""
e