-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{{ exceptions.warn() }} returns None instead of an empty string #2222
Comments
Good idea @clrcrl - let's do this one for the Octavius Catto release :) |
Hey all looking for some pointers on trying to make my first contribution (also newish to Python) and seems like this would be an okay one to attempt (maybe?). Managed to find that if I added a Traced it further back to the
Keen to know where I should be looking to make the changes. Thanks :) |
Hi @jeremyyeo, great to hear you're working on this! I would change the function definition of
I think that's going to be a lot easier than trying to remove |
Oh, and I neglected your second part of the question! Yes, there is a difference! |
…ation Make warn return empty string (#2222)
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: