[session] try to reconnect on unexpected error in system_sql. We need this for proper reconnection of pool used by hooks or looping task doing sql queries (such as cw_cleanup_transaction)
"""pre 3.6 bw compat"""# pylint: disable-msg=W0614,W0401fromwarningsimportwarnwarn('moved to cubicweb.uilib',DeprecationWarning,stacklevel=2)fromcubicweb.uilibimport*