mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
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
This commit is contained in:
parent
4184d6348e
commit
cc971910a9
@ -35,7 +35,7 @@ elif os.name == 'posix':
|
||||
# *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 @@ if lib_names:
|
||||
|
||||
# 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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user