buildpg icon indicating copy to clipboard operation
buildpg copied to clipboard

Func('now')

Open samuelcolvin opened this issue 5 years ago • 1 comments

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 avatar Jul 25 '20 18:07 samuelcolvin

I think behaved differently in python 3.6.

samuelcolvin avatar Jul 25 '20 18:07 samuelcolvin