Skip to content

Commit 2beffad

Browse files
author
Richard Jones
committed
Wasn't handling the cvs parser feeding properly.
1 parent 90bfc81 commit 2beffad

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

roundup/admin.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: admin.py,v 1.6 2002-01-23 07:27:19 grubert Exp $
19+
# $Id: admin.py,v 1.7 2002-02-20 05:04:32 richard Exp $
2020

2121
import sys, os, getpass, getopt, re, UserDict, shlex
2222
try:
@@ -836,6 +836,9 @@ def do_import(self, args):
836836
while 1:
837837
l = p.parse(line)
838838
if l: break
839+
line = f.readline()
840+
if not line:
841+
raise ValueError, "Unexpected EOF during CSV parse"
839842

840843
# make the new node's property map
841844
d = {}
@@ -1039,6 +1042,9 @@ def main(self):
10391042

10401043
#
10411044
# $Log: not supported by cvs2svn $
1045+
# Revision 1.6 2002/01/23 07:27:19 grubert
1046+
# . allow abbreviation of "help" in admin tool too.
1047+
#
10421048
# Revision 1.5 2002/01/21 16:33:19 rochecompaan
10431049
# You can now use the roundup-admin tool to pack the database
10441050
#

0 commit comments

Comments
 (0)