gicait / geoserver-rest

Python library for management of geospatial data in GeoServer.
https://geoserver-rest.readthedocs.io
MIT License
191 stars 77 forks source link

Correct response is returned as Exception #119

Closed szokejokepu closed 1 year ago

szokejokepu commented 1 year ago

When calling the method create_shp_datastore a successful call returns 202 success message, which is treated as a GeoServerException (see Geoserver.py line 1789).

if r.status_code in [200, 201]: return "The shapefile datastore created successfully!" else: raise GeoserverException(r.status_code, r.content)