Skip to content

Fix wrong JSON exception type in Postgres subscribe path#12254

Merged
ea-rus merged 1 commit into
mindsdb:releases/26.1.0from
ianu82:codex/fix-postgres-jsondecode-exception
Mar 17, 2026
Merged

Fix wrong JSON exception type in Postgres subscribe path#12254
ea-rus merged 1 commit into
mindsdb:releases/26.1.0from
ianu82:codex/fix-postgres-jsondecode-exception

Conversation

@ianu82

@ianu82 ianu82 commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace json.JSONDecoder with json.JSONDecodeError in Postgres notification payload parsing

Why

json.JSONDecoder is a decoder class, not an exception type. Catching it does not intercept malformed JSON payloads and can surface unintended errors during subscription callbacks.

Validation

  • python3 -m py_compile mindsdb/integrations/handlers/postgres_handler/postgres_handler.py

@github-actions

github-actions Bot commented Feb 27, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@ianu82

ianu82 commented Feb 27, 2026

Copy link
Copy Markdown
Contributor Author

recheck

@ea-rus ea-rus changed the base branch from main to releases/26.1.0 March 17, 2026 09:53
@ea-rus ea-rus merged commit 5f2a5b6 into mindsdb:releases/26.1.0 Mar 17, 2026
17 of 18 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants