Code

. roundup db: catch only IOError in getfile.
[roundup.git] / roundup / admin.py
index 5ce870a01cbefcbb0ce9a38c65fdbe6b6b0cb70c..c2c8840e4cde7b1b39c00cccbd7cb5b38ee5bf58 100644 (file)
@@ -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
 #