langchain: Exclude non-utf8 file from loader since it causes an error in the code_understanding example (#15324)

- **Description:** in the code_understanding.ipynb example, the loader
errors out on the
langchain/libs/community/tests/examples/non-utf8-encoding.py file, so I
updated the loader to exclude that file. Excluding that file allows the
example to run.
  - **Issue:** not applicable
  - **Dependencies:** none
pull/15327/head
Matthew Teschke 6 months ago committed by GitHub
parent 8bfac1a319
commit 621493228b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -128,6 +128,7 @@
" repo_path + \"/libs/langchain/langchain\",\n",
" glob=\"**/*\",\n",
" suffixes=[\".py\"],\n",
" exclude=[\"**/non-utf8-encoding.py\"],\n",
" parser=LanguageParser(language=Language.PYTHON, parser_threshold=500),\n",
")\n",
"documents = loader.load()\n",

Loading…
Cancel
Save