Browse files

Fixed regression introduced by 20472aa.

The wrong exception was being caught when detecting the presence of GeoIP.
Thanks to ramiro for the report.
  • Loading branch information...
1 parent a971d19 commit 24f99676195333aa345fb955cdc8d2d0cd08efa3 @bmispelon bmispelon committed Oct 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/gis/geoip/__init__.py
View
2 django/contrib/gis/geoip/__init__.py
@@ -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

0 comments on commit 24f9967

Please sign in to comment.