Allow ignoring particular exceptions when using glob resources

Suggest `if` block instead of assert statement, raising `TypeError`