[New-bugs-announce] [issue7711] csv error name incorrect

Scott Kitterman report at bugs.python.org
Sat Jan 16 06:15:20 CET 2010


New submission from Scott Kitterman <sklist at kitterman.com>:

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 error using try:/except _csv.Error: does not work.  It needs to be except csv.Error:.

----------
components: None
messages: 97864
nosy: kitterma
severity: normal
status: open
title: csv error name incorrect
type: behavior
versions: Python 2.5, Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7711>
_______________________________________


More information about the New-bugs-announce mailing list