﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21553	InterfaceError in Postgres	anonymous	Aymeric Augustin	"I think this is a hole in the fix for #15901 -- in Postgres, connection.is_usable accesses the cursor directly, with the result that base exceptions (eg. InterfaceError) are thrown without the normal wrapper and thus not caught:

{{{
    def is_usable(self):
        try:
            # Use a psycopg cursor directly, bypassing Django's utilities.
            self.connection.cursor().execute(""SELECT 1"")
        except DatabaseError:
            return False
        else:
            return True
}}}
"	Bug	closed	Database layer (models, ORM)	1.6	Release blocker	fixed		depaolim@… Shai Berger	Accepted	0	0	0	0	0	0
