Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #8680 -- Changed a couple of GEOExceptions to Python's RuntimeE…

…rror 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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4184d6348ea6a016b9b835995dcaf93a8d0f5f82 1 parent b2dd9c6
@malcolmt malcolmt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/gis/geos/
4 django/contrib/gis/geos/
@@ -35,7 +35,7 @@
# *NIX libraries
lib_names = ['geos_c']
- raise GEOSException('Unsupported OS "%s"' %
+ raise RuntimeError('Unsupported OS "%s"' %
# 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 @@
# 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))
Please sign in to comment.
Something went wrong with that request. Please try again.