KingNish commited on
Commit
9771f4a
1 Parent(s): 0e92f07

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -2
chatbot.py CHANGED
@@ -295,8 +295,7 @@ def search(term, num_results=3, lang="en", timeout=5, safe="active", ssl_verify=
295
  continue
296
  for result in result_block:
297
  link = result.find("a", href=True)
298
- if link:
299
- link = link["href"]
300
  thread = Thread(target=lambda: all_results.append(fetch_and_extract(link, max_chars_per_page)))
301
  threads.append(thread)
302
  thread.start()
 
295
  continue
296
  for result in result_block:
297
  link = result.find("a", href=True)
298
+ link = link["href"]
 
299
  thread = Thread(target=lambda: all_results.append(fetch_and_extract(link, max_chars_per_page)))
300
  threads.append(thread)
301
  thread.start()