samuelcolvin / buildpg

Query building for the postgresql prepared statements and asyncpg.
MIT License
85 stars 12 forks source link

Func('now') #24

Open samuelcolvin opened 4 years ago

samuelcolvin commented 4 years ago

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 commented 4 years ago

I think behaved differently in python 3.6.