{{ exceptions.warn() }} returns None instead of an empty string #2222
Labels
bug
Something isn't working
good_first_issue
Straightforward + self-contained changes, good for new contributors!
Milestone
Describe the bug
{{ exceptions.warn() }}
returns None instead of an empty string (which is what I expected)Steps To Reproduce
1:
dbt compile
Expected behavior
I expected to get a warning in my terminal, but the SQL should get compiled like so:
Actual behavior
A
None
gets inserted, resulting in invalid SQLThe output of
dbt --version
:0.16.0-rc2
The operating system you're using:
The output of
python --version
:Additional context
Can workaround by using the
{% do %}
syntax (as documented here, which I just updated).So I'm okay with this getting a #wontfix on it.
The text was updated successfully, but these errors were encountered: