When using the create_layergroup function, a get_layergroup call is made subsequently that raises a GeoserverException if the returned status is anything other than200. Even though the create_layergroup function has a check to see if the layergroup already exists, the subsequent get_layergroup call will error out the program on a 404 code regardless, because the only passing scenario is, again, a 200 code.
If the only scenario in which a 404 code is returned is the result of a layergroup not existing (in this specific part of the code), could there be an additional check for 404 codes?
This relates to a recent bugfix made in PR #97.
When using the
create_layergroup
function, aget_layergroup
call is made subsequently that raises aGeoserverException
if the returned status is anything other than200
. Even though thecreate_layergroup
function has a check to see if the layergroup already exists, the subsequentget_layergroup
call will error out the program on a404
code regardless, because the only passing scenario is, again, a200
code.If the only scenario in which a
404
code is returned is the result of a layergroup not existing (in this specific part of the code), could there be an additional check for404
codes?