Skip to content

Commit 12caf01

Browse files
committed
Dectect exception on requests own JSON class, not stdlib JSON
1 parent 3c75ea3 commit 12caf01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kafka_schema_registry/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def publish_schemas(
8989
)
9090
try:
9191
obj = value_resp.json()
92-
except json.JSONDecodeError:
92+
except JSONDecodeError:
9393
logger.error(f'Error decoding response: {value_resp.text}')
9494
raise
9595
if 'id' not in obj:

0 commit comments

Comments
 (0)