Author: mtredinnick
Date: 2008-08-29 18:03:12 -0500 (Fri, 29 Aug 2008)
New Revision: 8728

Modified:
   django/trunk/django/contrib/gis/geos/libgeos.py
Log:
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.


Modified: django/trunk/django/contrib/gis/geos/libgeos.py
===================================================================
--- django/trunk/django/contrib/gis/geos/libgeos.py     2008-08-29 22:51:01 UTC 
(rev 8727)
+++ django/trunk/django/contrib/gis/geos/libgeos.py     2008-08-29 23:03:12 UTC 
(rev 8728)
@@ -35,7 +35,7 @@
     # *NIX libraries
     lib_names = ['geos_c']
 else:
-    raise RuntimeError('Unsupported OS "%s"' % os.name)
+    raise ImportError('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 @@
 
 # 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))
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to