z3z1ma / dbt-osmosis

Provides automated YAML management, a dbt server, streamlit workbench, and git-integrated dbt model output diff tools
https://z3z1ma.github.io/dbt-osmosis/
Apache License 2.0
422 stars 45 forks source link

Handle updating empty schema.yml files #18

Closed coryandrewtaylor closed 1 year ago

coryandrewtaylor commented 1 year ago

DbtYamlManager.yaml_handler assumed that if a schema.yml file existed, it contained data. This caused a NoneType is not iterable exception when 1) reading an empty file, then 2) checking it for a key.

z3z1ma commented 1 year ago

Thanks a bunch for the catch and the PR, much appreciated 🚀 Merging this.