Skip to content

Commit

Permalink
Fix bug for UnboundLocalError: local variable 'database' referenced b…
Browse files Browse the repository at this point in the history
…efore assignment (#87)
  • Loading branch information
syou6162 authored Sep 6, 2023
1 parent 74fb996 commit 70a132c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dbt_osmosis/core/osmosis.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ def bootstrap_sources(self) -> None:
# Parse source config
if isinstance(spec, str):
schema = source
database = self.config.credentials.database
path = spec
elif isinstance(spec, dict):
schema = spec.get("schema", source)
Expand Down

0 comments on commit 70a132c

Please sign in to comment.