Spaces:
Sleeping
Sleeping
Upd syntax
Browse files
search/engines/duckduckgo.py
CHANGED
|
@@ -248,10 +248,7 @@ class DuckDuckGoEngine:
|
|
| 248 |
elif response.status_code == 429:
|
| 249 |
logger.warning(f"DuckDuckGo rate limited, waiting...")
|
| 250 |
time.sleep(2)
|
| 251 |
-
continue
|
| 252 |
-
|
| 253 |
-
response.raise_for_status()
|
| 254 |
-
break
|
| 255 |
|
| 256 |
except Exception as e:
|
| 257 |
logger.warning(f"DuckDuckGo endpoint {endpoint['url']} failed: {e}")
|
|
|
|
| 248 |
elif response.status_code == 429:
|
| 249 |
logger.warning(f"DuckDuckGo rate limited, waiting...")
|
| 250 |
time.sleep(2)
|
| 251 |
+
continue
|
|
|
|
|
|
|
|
|
|
| 252 |
|
| 253 |
except Exception as e:
|
| 254 |
logger.warning(f"DuckDuckGo endpoint {endpoint['url']} failed: {e}")
|