diff options
| author | Florian Apolloner <florian@apolloner.eu> | 2013-01-01 12:24:02 +0100 |
|---|---|---|
| committer | Florian Apolloner <florian@apolloner.eu> | 2013-01-01 12:24:02 +0100 |
| commit | cf7afeb2d18b22f857a35d5cb698e2c180aadd2f (patch) | |
| tree | 938acb863a7bc9aa722b7a2e72e784b2fd279ce0 | |
| parent | 3aa4b8165da23a2f094d0eeffacbda5484f4c1f6 (diff) | |
Fixed a NameError in geoip/libgeoip if the GeoIP library is not found.
Thx to Bouke Haarsma for the report.
| -rw-r--r-- | django/contrib/gis/geoip/libgeoip.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/gis/geoip/libgeoip.py b/django/contrib/gis/geoip/libgeoip.py index 613949f809..e9e7cd7fe9 100644 --- a/django/contrib/gis/geoip/libgeoip.py +++ b/django/contrib/gis/geoip/libgeoip.py @@ -19,8 +19,8 @@ else: # Getting the path to the GeoIP library. if lib_name: lib_path = find_library(lib_name) -if lib_path is None: raise GeoIPException('Could not find the GeoIP library (tried "%s"). ' - 'Try setting GEOIP_LIBRARY_PATH in your settings.' % lib_name) +if lib_path is None: raise RuntimeError('Could not find the GeoIP library (tried "%s"). ' + 'Try setting GEOIP_LIBRARY_PATH in your settings.' % lib_name) lgeoip = CDLL(lib_path) # Getting the C `free` for the platform. |
