Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 7d29542

Browse files
committed
handle unexpected edge case
1 parent c88b297 commit 7d29542

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

data_diff/dbt_parser.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ def get_dbt_selection_models(self, dbt_selection: str) -> List[str]:
133133
elif not results.result:
134134
raise Exception(f"No dbt models found for `--select {dbt_selection}`")
135135
else:
136-
raise results.exception
136+
if results.exception:
137+
raise results.exception
138+
else:
139+
logger.debug(str(results))
140+
raise Exception("Encountered an error while finding `--select` models")
137141

138142
def get_run_results_models(self):
139143
with open(self.project_dir / RUN_RESULTS_PATH) as run_results:

0 commit comments

Comments
 (0)