Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit 24f99676195333aa345fb955cdc8d2d0cd08efa3 1 parent a971d19
Baptiste Mispelon authored October 09, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/gis/geoip/__init__.py
2  django/contrib/gis/geoip/__init__.py
@@ -14,5 +14,5 @@
14 14
 try:
15 15
     from .base import GeoIP, GeoIPException
16 16
     HAS_GEOIP = True
17  
-except ImportError:
  17
+except RuntimeError:  # libgeoip.py raises a RuntimeError if no GeoIP library is found
18 18
     HAS_GEOIP = False

0 notes on commit 24f9967

Please sign in to comment.
Something went wrong with that request. Please try again.