Skip to content

Commit

Permalink
updated sitemap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Prikshit7766 committed Nov 17, 2023
1 parent 36ced1b commit 7a781b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embedchain/loaders/sitemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def load_data(self, sitemap_source):
soup = BeautifulSoup(response.text, "xml")
except requests.RequestException as e:
logging.error(f"Error fetching sitemap from URL: {e}")
return {"doc_id": "", "data": []}
return
elif os.path.isfile(sitemap_source):
with open(sitemap_source, "r") as file:
soup = BeautifulSoup(file, "xml")
Expand Down

0 comments on commit 7a781b1

Please sign in to comment.