summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-29 22:51:01 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-29 22:51:01 +0000
commit4184d6348ea6a016b9b835995dcaf93a8d0f5f82 (patch)
tree57758192401e36e33f96634c50130aff7170a2fa
parentb2dd9c6fa12d7d24dbf97c1a3832c2bb9824c2b7 (diff)
Fixed #8680 -- Changed a couple of GEOExceptions to Python's RuntimeError so
that help() works. Without this change, even if you didn't use the gis stuff, just using Python 2.5's help() system would crash when searching for model names. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8727 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/gis/geos/libgeos.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos.py
index d2990a6d0e..8e3ab83263 100644
--- a/django/contrib/gis/geos/libgeos.py
+++ b/django/contrib/gis/geos/libgeos.py
@@ -35,7 +35,7 @@ elif os.name == 'posix':
# *NIX libraries
lib_names = ['geos_c']
else:
- raise GEOSException('Unsupported OS "%s"' % os.name)
+ raise RuntimeError('Unsupported OS "%s"' % os.name)
# Using the ctypes `find_library` utility to find the the path to the GEOS
# shared library. This is better than manually specifiying each library name
@@ -47,7 +47,7 @@ if lib_names:
# No GEOS library could be found.
if lib_path is None:
- raise GEOSException('Could not find the GEOS library (tried "%s"). '
+ raise RuntimeError('Could not find the GEOS library (tried "%s"). '
'Try setting GEOS_LIBRARY_PATH in your settings.' %
'", "'.join(lib_names))