Skip to content

Commit f618adf

Browse files
authored
Merge pull request #120 from szokejokepu/master
Minor fix for correct create_shp_datastore response
2 parents 79e4b03 + ecf008a commit f618adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geo/Geoserver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1785,7 +1785,7 @@ def create_shp_datastore(
17851785
auth=(self.username, self.password),
17861786
headers=headers,
17871787
)
1788-
if r.status_code in [200, 201]:
1788+
if r.status_code in [200, 201, 202]:
17891789
return "The shapefile datastore created successfully!"
17901790
else:
17911791
raise GeoserverException(r.status_code, r.content)

0 commit comments

Comments
 (0)