mirror of
https://github.com/django/django.git
synced 2025-09-28 13:04:54 +00:00
Fixed regression introduced by 20472aa827
.
The wrong exception was being caught when detecting the presence of GeoIP. Thanks to ramiro for the report.
This commit is contained in:
parent
a971d19bab
commit
24f9967619
1 changed files with 1 additions and 1 deletions
|
@ -14,5 +14,5 @@
|
||||||
try:
|
try:
|
||||||
from .base import GeoIP, GeoIPException
|
from .base import GeoIP, GeoIPException
|
||||||
HAS_GEOIP = True
|
HAS_GEOIP = True
|
||||||
except ImportError:
|
except RuntimeError: # libgeoip.py raises a RuntimeError if no GeoIP library is found
|
||||||
HAS_GEOIP = False
|
HAS_GEOIP = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue