Skip to content
Browse files

Changed [8727] to use ImportError, which seems to actually work. Not …

…sure what

I was smoking when I tested this 10 minutes ago. Refs #8680. Thanks to gkelly
for cleaning up after me.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 4184d63 commit cc971910a94a8714f83cc6d23b9a6b87eed9a9a2 @malcolmt malcolmt committed
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 RuntimeError('Unsupported OS "%s"' %
+ raise ImportError('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 RuntimeError('Could not find the GEOS library (tried "%s"). '
+ raise ImportError('Could not find the GEOS library (tried "%s"). '
'Try setting GEOS_LIBRARY_PATH in your settings.' %
'", "'.join(lib_names))

0 comments on commit cc97191

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