Skip to content
Browse files

GeoIPException is not imported, so use generic Exception class

  • Loading branch information...
1 parent 6522283 commit 1f3cc2dfed36fc2c5c296961157025131d6c7553 @Bouke committed Jun 3, 2012
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 Exception('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 1f3cc2d

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