Skip to content

Commit

Permalink
Fixed regression introduced by 20472aa.
Browse files Browse the repository at this point in the history
The wrong exception was being caught when detecting the presence of GeoIP.
Thanks to ramiro for the report.
  • Loading branch information
bmispelon committed Oct 9, 2013
1 parent a971d19 commit 24f9967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/gis/geoip/__init__.py
Expand Up @@ -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.