diff options
| author | Tim Graham <timograham@gmail.com> | 2014-11-19 14:31:48 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-19 16:07:49 -0500 |
| commit | 5bcd292098b4de7bb03ef778e24d9e2f433d0dae (patch) | |
| tree | c188131bf15261eccc7375cfa344bbfafdf857f0 /django | |
| parent | 45db7f7db85ea490fa914fa57ac943d83a6c07f1 (diff) | |
Fixed #23871 -- Removed promotion of MySQL warnings to errors in DEBUG mode.
Diffstat (limited to 'django')
| -rw-r--r-- | django/db/backends/mysql/base.py | 4 |
1 files changed, 0 insertions, 4 deletions
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 |
