Skip to content

Commit

Permalink
[#3689] Fix filesystem searcher and tests that mock it (#4271)
Browse files Browse the repository at this point in the history
automatic commit by git-black, original commits:
  3d28b67
  d246bab
  • Loading branch information
gshank authored and iknox-fa committed Feb 8, 2022
1 parent 7587e14 commit db3f37a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/dbt/parser/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ def filesystem_search(project: Project, relative_dirs: List[str], extension: str
file_path_list = []
for result in find_matching(root, relative_dirs, ext):
if "searched_path" not in result or "relative_path" not in result:
raise InternalException(
'Invalid result from find_matching: {}'.format(result)
)
raise InternalException("Invalid result from find_matching: {}".format(result))
file_match = FilePath(
searched_path=result["searched_path"],
relative_path=result["relative_path"],
Expand Down

0 comments on commit db3f37a

Please sign in to comment.