Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP/EnqueuedResources: bring back try/catch #2245

Merged
merged 1 commit into from
May 28, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 27, 2023

Commit dec9d40, which was part of PR #2176 removed this try/catch and while it shouldn't be needed anymore for valid code, it could still be needed for code containing parse errors.

This commit doesn't completely revert the previous commit, but does bring the try/catch back to prevent this situation.

Includes unit test safeguarding the fix.

Related to #2243

Commit dec9d40, which was part of PR 2176 removed this `try/catch` and while it shouldn't be needed anymore for valid code, it _could_ still be needed for code containing parse errors.

This commit doesn't completely revert the previous commit, but does bring the try/catch back to prevent this situation.

Includes unit test safeguarding the fix.
Copy link
Member

@GaryJones GaryJones left a comment

Choose a reason for hiding this comment

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

@GaryJones GaryJones merged commit a328aff into develop May 28, 2023
@GaryJones GaryJones deleted the feature/enqueuedresources-bring-back-try-catch branch May 28, 2023 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants