Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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: http://code.djangoproject.com/svn/django/trunk@8728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cc971910a94a8714f83cc6d23b9a6b87eed9a9a2 1 parent 4184d63
Malcolm Tredinnick authored August 29, 2008

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/gis/geos/libgeos.py
4  django/contrib/gis/geos/libgeos.py
@@ -35,7 +35,7 @@
35 35
     # *NIX libraries
36 36
     lib_names = ['geos_c']
37 37
 else:
38  
-    raise RuntimeError('Unsupported OS "%s"' % os.name)
  38
+    raise ImportError('Unsupported OS "%s"' % os.name)
39 39
 
40 40
 # Using the ctypes `find_library` utility to find the the path to the GEOS 
41 41
 # shared library.  This is better than manually specifiying each library name 
@@ -47,7 +47,7 @@
47 47
 
48 48
 # No GEOS library could be found.
49 49
 if lib_path is None: 
50  
-    raise RuntimeError('Could not find the GEOS library (tried "%s"). '
  50
+    raise ImportError('Could not find the GEOS library (tried "%s"). '
51 51
                         'Try setting GEOS_LIBRARY_PATH in your settings.' % 
52 52
                         '", "'.join(lib_names))
53 53
 

0 notes on commit cc97191

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