BinKhoaLe1812 commited on
Commit
952af56
·
verified ·
1 Parent(s): f9ec4e0

Upd syntax

Browse files
Files changed (1) hide show
  1. search/engines/duckduckgo.py +1 -4
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}")