|
@@ -95,7 +95,7 @@ def get_sc_code(headers):
|
|
|
|
|
|
raise SearxEngineResponseException(
|
|
|
suspended_time=7 * 24 * 3600, message="PR-695: query new sc time-stamp failed!"
|
|
|
- )
|
|
|
+ ) from exc
|
|
|
|
|
|
sc_code = href[5:]
|
|
|
sc_code_ts = time()
|
|
@@ -107,10 +107,19 @@ def get_sc_code(headers):
|
|
|
|
|
|
def request(query, params):
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
args = {
|
|
|
'query': query,
|
|
|
'page': params['pageno'],
|
|
|
'cat': 'web',
|
|
|
+
|
|
|
+
|
|
|
|
|
|
'sc': get_sc_code(params['headers']),
|
|
|
}
|