Ticket #8680: 8680.patch

File 8680.patch, 766 bytes (added by gkelly, 7 years ago)

Patch to raise different exception that allows Python's help to finish.

  • django/contrib/gis/geos/libgeos.py

     
    4747
    4848# No GEOS library could be found.
    4949if lib_path is None:
    50     raise GEOSException('Could not find the GEOS library (tried "%s"). '
    51                         'Try setting GEOS_LIBRARY_PATH in your settings.' %
    52                         '", "'.join(lib_names))
     50    error_msg = 'Could not find the GEOS library (tried "%s"). Try setting GEOS_LIBRARY_PATH in your settings.' % '", "'.join(lib_names)
     51    raise ImportError, error_msg
    5352
    5453# Getting the GEOS C library.  The C interface (CDLL) is used for
    5554#  both *NIX and Windows.
Back to Top