1
0
Fork 0

Change the mysql_exceptions import of OperationalException to django.db

The import itself would have needed fixing, but its bad to pin it to mysql.

Signed-off-by: Corey Shields <cshields@gmail.com>
merge-requests/391/head
Corey Shields 2019-07-04 19:52:50 -04:00 committed by Fabian P. Schmidt
parent f0c0c9bc8b
commit f734919b61
1 changed files with 1 additions and 1 deletions

View File

@ -3,13 +3,13 @@ from __future__ import absolute_import, division, print_function, \
import logging
from _mysql_exceptions import OperationalError
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.contrib.sites.shortcuts import get_current_site
from django.core.cache import cache
from django.db import OperationalError
from django.http import HttpResponse, HttpResponseNotFound, \
HttpResponseServerError, JsonResponse
from django.shortcuts import get_object_or_404, redirect, render