openai / web-crawl-q-and-a-example

Learn how to crawl your website and build a Q/A bot with the OpenAI API
https://platform.openai.com/docs/tutorials/web-qa-embeddings
284 stars 186 forks source link

Fix: None check before regex search #4

Open ItamarRocha opened 12 months ago

ItamarRocha commented 12 months ago

The result of the get_hyperlinks function can contain None values. Therefore, we need to check before performing the regex search. Otherwise, an error will be thrown.

This pull request performs the same change in both Jupyter-notebook and Python files.