1
0
mirror of https://github.com/django/django.git synced 2025-02-01 21:29:24 +00:00

Fixed regression introduced by 20472aa827669d2b83b74e521504e88e18d086a1.

The wrong exception was being caught when detecting the presence of GeoIP.
Thanks to ramiro for the report.
This commit is contained in:
Baptiste Mispelon 2013-10-09 11:53:43 +02:00
parent a971d19bab
commit 24f9967619

View File

@ -14,5 +14,5 @@
try:
from .base import GeoIP, GeoIPException
HAS_GEOIP = True
except ImportError:
except RuntimeError: # libgeoip.py raises a RuntimeError if no GeoIP library is found
HAS_GEOIP = False