From f24d366e1a07bc9b4a9e0416563bc7fa3c1d55fe Mon Sep 17 00:00:00 2001 From: mattbasta Date: Thu, 2 Dec 2010 14:21:43 -0500 Subject: [PATCH] Updated search provider to remove MIME stuff for bug 614679 --- validator/typedetection.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/validator/typedetection.py b/validator/typedetection.py index 519c3b7..0bd3e72 100644 --- a/validator/typedetection.py +++ b/validator/typedetection.py @@ -151,11 +151,9 @@ def detect_opensearch(package): # Make sure that the type attribute is an acceptable mime type. if not url.attributes["type"].value in acceptable_mime_types: - # Make a nice error message about the MIME type. - error_mesg = "The provided MIME type (%s) is not acceptable" - error_mesg = error_mesg % url.attributes["type"].value - return {"failure": True, - "error": error_mesg} + # If it's not an acceptable MIME type, it shouldn't be allowed in, + # but it also isn't hurting anything so just skip this URL. + continue # Make sure that there is a {searchTerms} placeholder in the # URL template.