diff --git a/geonodectl b/geonodectl index 5b55375..099ac31 100755 --- a/geonodectl +++ b/geonodectl @@ -337,7 +337,7 @@ To use this tool you have to set the following environment variables before star # PATCH maps_patch = maps_subparsers.add_parser("patch", help="patch maps metadata") maps_patch.add_argument(type=int, dest="pk", help="pk of map to patch") - maps_patch_mutually_exclusive_group = maps.add_mutually_exclusive_group() + maps_patch_mutually_exclusive_group = maps_patch.add_mutually_exclusive_group() maps_patch_mutually_exclusive_group.add_argument( "--set", diff --git a/geonoderest/rest.py b/geonoderest/rest.py index cd155c0..adda7c0 100644 --- a/geonoderest/rest.py +++ b/geonoderest/rest.py @@ -158,6 +158,7 @@ def http_patch(self, endpoint: str, params: Dict = {}) -> Dict: ) r.raise_for_status() except requests.exceptions.HTTPError as err: + logging.error(r.text) raise SystemExit(err) return r.json()