Fix error for older Shapely versions
This commit is contained in:
parent
ca7a054a39
commit
31d73b2b48
|
@ -6,7 +6,11 @@ import six
|
|||
import geojson
|
||||
|
||||
import shapely.geometry
|
||||
from shapely.errors import GeometryTypeError
|
||||
try:
|
||||
from shapely.errors import GeometryTypeError
|
||||
except ImportError:
|
||||
# Previous version of shapely uses ValueError and TypeError
|
||||
GeometryTypeError = (ValueError, TypeError)
|
||||
|
||||
import ckantoolkit as tk
|
||||
|
||||
|
|
Loading…
Reference in New Issue