﻿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
19507	django.db doesn't wrap / replace psycopg2.InterfaceError	Antoine Pitrou	nobody	"django.db currently only wraps the backend's `DatabaseError` and `IntegrityError`. However, psycopg2 can raise a ""psycopg2.InterfaceError: connection already closed"" when trying to run a query more than once against an unavailable (e.g. stopped) database. This means catching `django.db.DatabaseError` isn't enough to catch all possible runtime errors (other than programming errors).

It would be nice if Django also replaced psycopg2's `InterfaceError` with a generic Django exception.

(note: slightly related with issue #15802)"	Bug	closed	Database layer (models, ORM)	1.4	Normal	duplicate			Accepted	0	0	0	0	0	0
