Skip to content

Commit

Permalink
fix(api): update post req json response (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyAustin4 authored Aug 23, 2023
1 parent 1a357da commit 942c693
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kafka_connect_api/kafka_connect_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 942c693

Please sign in to comment.