@@ -87,6 +87,11 @@ def make_callback(engine_name, results_queue, callback, params):
8787
8888 # creating a callback wrapper for the search engine results
8989 def process_callback(response, **kwargs):
90+ # check if redirect comparing to the True value,
91+ # because resp can be a Mock object, and any attribut name returns something.
92+ if response.is_redirect is True:
93+ return
94+
9095 response.search_params = params
9196
9297 timeout_overhead = 0.2 # seconds