Avoid exception driven filters
Merge pull request #916 from romainneutron/avoid-exception-driven-filters

[3.8] Avoid exception driven filters