diff --git a/kafka_connect_api/kafka_connect_api.py b/kafka_connect_api/kafka_connect_api.py index 128447a..ca9e9d8 100644 --- a/kafka_connect_api/kafka_connect_api.py +++ b/kafka_connect_api/kafka_connect_api.py @@ -384,7 +384,10 @@ def post_raw(self, query_path, **kwargs) -> Response: def post(self, query_path, **kwargs): req = self.post_raw(query_path, **kwargs) - return req.json() + try: + return req.json() + except ValueError: + return req @evaluate_api_return def put_raw(self, query_path, **kwargs) -> Response: