mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Refs #23919 -- Replaced six.reraise by raise
This commit is contained in:
parent
d170c63351
commit
6e55e1d88a
28 changed files with 100 additions and 177 deletions
|
@ -1,9 +1,7 @@
|
|||
import sys
|
||||
import unittest
|
||||
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.db import ProgrammingError
|
||||
from django.utils import six
|
||||
|
||||
try:
|
||||
from django.contrib.gis.db.backends.postgis.operations import PostGISOperations
|
||||
|
@ -19,7 +17,7 @@ except ImproperlyConfigured as e:
|
|||
if e.args and e.args[0].startswith('Could not import user-defined GEOMETRY_BACKEND'):
|
||||
HAS_POSTGRES = False
|
||||
else:
|
||||
six.reraise(*sys.exc_info())
|
||||
raise
|
||||
|
||||
|
||||
if HAS_POSTGRES:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue