The create_layergroup method seems to be broken (I'm currently on geoserver-rest 2.4.1). It raises an error "No such layer group " when I try to create the layer_group with .
As far as I understand this is because it checks whether the layergroup exists first, and get_layergroup has been changed from returning None to raising an exception in case the layergroup doesn't exist.
See Geoserver.py / create_layergroup:
731 # check if it already exist in Geoserver
732 if self.get_layergroup(name) is not None: # <--- this line is now raising an Exception instead of returning None
734 raise Exception(
735 f"Layergroup: {name} already exist in Geoserver instance"
736 )
Hi everyone,
The" when I try to create the layer_group with .
create_layergroup
method seems to be broken (I'm currently on geoserver-rest 2.4.1). It raises an error "No such layer groupAs far as I understand this is because it checks whether the layergroup exists first, and get_layergroup has been changed from returning None to raising an exception in case the layergroup doesn't exist.
See Geoserver.py / create_layergroup: