Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 24f99676195333aa345fb955cdc8d2d0cd08efa3 1 parent a971d19
@bmispelon bmispelon authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.