From a078297621ebd319453f9cc99d62cf00b7b7dba0 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 20 Feb 2002 05:04:32 +0000 Subject: [PATCH] Wasn't handling the cvs parser feeding properly. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@638 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/admin.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roundup/admin.py b/roundup/admin.py index 5ce870a..c2c8840 100644 --- a/roundup/admin.py +++ b/roundup/admin.py @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: admin.py,v 1.6 2002-01-23 07:27:19 grubert Exp $ +# $Id: admin.py,v 1.7 2002-02-20 05:04:32 richard Exp $ import sys, os, getpass, getopt, re, UserDict, shlex try: @@ -836,6 +836,9 @@ Command help: while 1: l = p.parse(line) if l: break + line = f.readline() + if not line: + raise ValueError, "Unexpected EOF during CSV parse" # make the new node's property map d = {} @@ -1039,6 +1042,9 @@ if __name__ == '__main__': # # $Log: not supported by cvs2svn $ +# Revision 1.6 2002/01/23 07:27:19 grubert +# . allow abbreviation of "help" in admin tool too. +# # Revision 1.5 2002/01/21 16:33:19 rochecompaan # You can now use the roundup-admin tool to pack the database # -- 2.30.2