From 5bcd292098b4de7bb03ef778e24d9e2f433d0dae Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 19 Nov 2014 14:31:48 -0500 Subject: Fixed #23871 -- Removed promotion of MySQL warnings to errors in DEBUG mode. --- django/db/backends/mysql/base.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'django') diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index b2d9b649be..5d1c023dcb 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -50,10 +50,6 @@ from django.utils.safestring import SafeBytes, SafeText from django.utils import six from django.utils import timezone -# Raise exceptions for database warnings if DEBUG is on -if settings.DEBUG: - warnings.filterwarnings("error", category=Database.Warning) - DatabaseError = Database.DatabaseError IntegrityError = Database.IntegrityError -- cgit v1.3