We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b08ce46 commit d6ebdecCopy full SHA for d6ebdec
PreMailer.Net/PreMailer.Net/PreMailer.cs
@@ -247,7 +247,19 @@ private bool DomainMatch(string domain, string url)
247
/// </summary>
248
private IEnumerable<string> GetCssBlocks(IEnumerable<ICssSource> cssSources)
249
{
250
- return cssSources.Select(styleSource => styleSource.GetCss()).ToList();
+ return cssSources.Select(GetCssBlock).ToList();
251
+ }
252
+ private string GetCssBlock(ICssSource cssSource)
253
+ {
254
+ try
255
256
+ return cssSource.GetCss();
257
258
+ catch (Exception ex)
259
260
+ _warnings.Add(ex.Message);
261
+ return string.Empty;
262
263
}
264
265
private void RemoveCssComments(IEnumerable<IElement> cssSourceNodes)
0 commit comments