Issue 821364
Created on 2003-10-10 17:41 by thomas_ah, last changed 2003-10-24 16:31 by jlgijsbers.
msg995 |
Author: [hidden] (thomas_ah) |
Date: 2003-10-10 17:41 |
|
When adding a blank line after the last entry on the
page http://myhost:8917/demo/keyword and submitting
this change,
there is an exception.
I am using roundup 0.6.2 with python 2.1.3 (Debian woody)
and python-csv 1.0 (Debian sarge).
ValueError: Unexpected EOF during CSV parse
A problem occurred while running a Python script. Here
is the sequence of function calls leading up to the
error, with the most recent (innermost) call first. The
exception attributes are:
args = ('Unexpected EOF during CSV parse',)
/home/thomas/roundup/roundup-0.6.2/roundup/rcsv.py in
reader(fileobj=<StringIO.StringIO instance>,
dialect=<class roundup.rcsv.comma_separated>)
42 line = fileobj.readline()
43 if not line:
44 raise ValueError,
"Unexpected EOF during CSV parse"
global ValueError = undefined
45 result.append(fields)
46 return result
/home/thomas/roundup/roundup-0.6.2/roundup/cgi/client.py
in
editCSVAction(self=<_roundup_tracker_1.interfaces.Client
instance>)
1231 # do the edit
1232 rows =
StringIO.StringIO(self.form['rows'].value)
1233 reader = rcsv.reader(rows,
rcsv.comma_separated)
reader = undefined, global rcsv = <module
'roundup.rcsv' from 'roundup/rcsv.pyc'>, rows =
<StringIO.StringIO instance>, global comma_separated =
undefined
1234 found = {}
1235 line = 0
/home/thomas/roundup/roundup-0.6.2/roundup/cgi/client.py
in
handle_action(self=<_roundup_tracker_1.interfaces.Client
instance>)
563 raise ValueError, 'No such action
"%s"'%action
564 # call the mapped action
565 getattr(self, method)()
global getattr = undefined, self =
<_roundup_tracker_1.interfaces.Client instance>, method
= 'editCSVAction'
566 except Redirect:
567 raise
/home/thomas/roundup/roundup-0.6.2/roundup/cgi/client.py
in
inner_main(self=<_roundup_tracker_1.interfaces.Client
instance>)
285 except:
286 # everything else
287 self.write(cgitb.html())
self = <_roundup_tracker_1.interfaces.Client
instance>, global write = undefined, global cgitb =
<module 'roundup.cgi.cgitb' from
'roundup/cgi/cgitb.pyc'>, global html = undefined
288
289 def clean_sessions(self):
|
msg996 |
Author: [hidden] (jlgijsbers) |
Date: 2003-10-24 16:31 |
|
Logged In: YES
user_id=469548
The 2.3 csv module also barfs on empty lines. I've added a
wrapper which removes empty lines before it sends it off to
the actual parser.
|
|
Date |
User |
Action |
Args |
2003-10-10 17:41:23 | thomas_ah | create | |
|