Skip to content

[19.0[IMP] edi_core_oca: swallow IntegrityError and malformed data errors#319

Open
yankinmax wants to merge 1 commit into
OCA:19.0from
camptocamp:edi_core_oca-add-exp
Open

[19.0[IMP] edi_core_oca: swallow IntegrityError and malformed data errors#319
yankinmax wants to merge 1 commit into
OCA:19.0from
camptocamp:edi_core_oca-add-exp

Conversation

@yankinmax

Copy link
Copy Markdown
Contributor

No description provided.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @etobella, @simahawk,
some modules you are maintaining are being modified, check this out!

@Ricardoalso Ricardoalso Jul 15, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some time ago I added the line except (OperationalError, IntegrityError): https://github.com/OCA/edi-framework/blob/19.0/edi_core_oca/models/edi_backend.py#L266 PR #240 in order to fix failed transactions where the cursor enters an aborted state.

With this new commit we will never reach the conditional structure if res != "__sql_error__": https://github.com/OCA/edi-framework/blob/19.0/edi_core_oca/models/edi_backend.py#L282

@simahawk simahawk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree w/ @Ricardoalso

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants