Message260712
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. |
|
Date |
User |
Action |
Args |
2016-02-23 09:07:38 | Ilja Everilä | set | recipients:
+ Ilja Everilä |
2016-02-23 09:07:38 | Ilja Everilä | set | messageid: <1456218458.37.0.00563825944082.issue26407@psf.upfronthosting.co.za> |
2016-02-23 09:07:38 | Ilja Everilä | link | issue26407 messages |
2016-02-23 09:07:37 | Ilja Everilä | create | |
|