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
parent
f0c0c9bc8b
commit
f734919b61
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue