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

Add option to swallow ArgumentErrors (CssParser) #418

Conversation

wnm
Copy link
Contributor

@wnm wnm commented Sep 16, 2022

CssParser prior to version 1.7.1 swallowed malformed css rules silently. Starting with version 1.8.0 it threw an error for invalid CSS. The newest version of CssParser added a new option rule_set_exceptions to silently swallow ArgumentErrors generated from RuleSet.

This PR adds a option rule_set_exceptions to premailer to pass on to CssParser.

@grosser
Copy link
Contributor

grosser commented Sep 16, 2022

the default in css_parser is true https://github.com/premailer/css_parser/pull/132/files should we use the same here ?

@grosser
Copy link
Contributor

grosser commented Sep 17, 2022

1.17.0

@grosser grosser closed this Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants