Message97881
This is to be expected. The Error Exception is actually defined in the
underlying _csv extension module. The higher level csv Python module
imports it. The two are the same object:
>>> import csv, _csv
>>> csv.Error
<class _csv.Error at 0x818517c>
>>> _csv.Error
<class _csv.Error at 0x818517c>
>>> csv.Error is _csv.Error
True
So, continue to use
try:
...
except csv.Error:
...
and ignore the leading underscore. |
|
Date |
User |
Action |
Args |
2010-01-16 15:36:32 | skip.montanaro | set | recipients:
+ skip.montanaro, kitterma |
2010-01-16 15:36:32 | skip.montanaro | set | messageid: <1263656192.34.0.161949230049.issue7711@psf.upfronthosting.co.za> |
2010-01-16 15:36:31 | skip.montanaro | link | issue7711 messages |
2010-01-16 15:36:30 | skip.montanaro | create | |
|