Skip to content

Commit

Permalink
Dectect exception on requests own JSON class, not stdlib JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopofar committed Dec 9, 2024
1 parent 3c75ea3 commit 12caf01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kafka_schema_registry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def publish_schemas(
)
try:
obj = value_resp.json()
except json.JSONDecodeError:
except JSONDecodeError:
logger.error(f'Error decoding response: {value_resp.text}')
raise
if 'id' not in obj:
Expand Down

0 comments on commit 12caf01

Please sign in to comment.