Skip Montanaro added the comment:
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
>>> _csv.Error
>>> csv.Error is _csv.Err
New submission from Scott Kitterman :
Using the csv module I encountered an ASCII NUL in a file and got this error:
"_csv.Error: line contains NULL byte"
According to the documentation (
http://docs.python.org/library/csv.html#module-contents ) it should be
csv.Error:. Attempting to trap the