Skip to content

Commit 9f0d635

Browse files
committed
feat: add try-except logic to _dbt module
1 parent afd225e commit 9f0d635

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/dander/_dbt/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
try:
2+
from dbt.cli.main import dbtRunner, dbtRunnerResult
3+
except ImportError:
4+
msg = f"""
5+
dbt is not installed. Please install the dander dbt extra using:
6+
7+
```bash
8+
pip install dander[dbt]
9+
```
10+
"""
11+
raise ImportError(msg)

src/dander/dbt/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)