Skip to content
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...
1 parent 3aa4b81 commit cf7afeb2d18b22f857a35d5cb698e2c180aadd2f @apollo13 apollo13 committed
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.

0 comments on commit cf7afeb

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