Author Ilja Everilä
Recipients Ilja Everilä
Date 2016-02-23.09:07:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456218458.37.0.00563825944082.issue26407@psf.upfronthosting.co.za>
In-reply-to
Content
After doing some reading on https://docs.python.org/dev/c-api/exceptions.html it seems that this is possibly "as designed" or such, since csv_writerows explicitly calls PyErr_SetString on receiving NULL from PyObject_GetIter.

Still, it feels like this could either let the original exception fall through (since it has nothing in the way of handling it) or form the chain in PY3 for easier debugging of the real cause.

To give this thing some context we ran in to this while passing SQLAlchemy Query objects to csv_writerows. The Query object is compiled during call to __iter__ and the current behaviour masks possible SQL errors etc.
History
Date User Action Args
2016-02-23 09:07:38Ilja Everiläsetrecipients: + Ilja Everilä
2016-02-23 09:07:38Ilja Everiläsetmessageid: <1456218458.37.0.00563825944082.issue26407@psf.upfronthosting.co.za>
2016-02-23 09:07:38Ilja Everilälinkissue26407 messages
2016-02-23 09:07:37Ilja Everiläcreate