Skip to content
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

Func('now') #24

Open
samuelcolvin opened this issue Jul 25, 2020 · 1 comment
Open

Func('now') #24

samuelcolvin opened this issue Jul 25, 2020 · 1 comment

Comments

@samuelcolvin
Copy link
Owner

samuelcolvin commented Jul 25, 2020

should raise a more sensible error

Currently

from buildpg import Func
print(Func('now'))

Raises an ugly RuntimeError: generator raised StopIteration error which is not easy to track down.

This was with buildpg v0.1, later version might have fixed the problem.

@samuelcolvin
Copy link
Owner Author

I think behaved differently in python 3.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant