Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a NameError in geoip/libgeoip if the GeoIP library is not found.

Thx to Bouke Haarsma for the report.
  • Loading branch information...
commit cf7afeb2d18b22f857a35d5cb698e2c180aadd2f 1 parent 3aa4b81
@apollo13 apollo13 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/gis/geoip/libgeoip.py
View
4 django/contrib/gis/geoip/libgeoip.py
@@ -19,8 +19,8 @@
# 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.
Please sign in to comment.
Something went wrong with that request. Please try again.