Changeset 1894
- Timestamp:
- 14 Jun 2007, 03:45:50 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r1893 r1894 184 184 try: 185 185 pume.modifyRecord(**dict) 186 # Can not happen, but anyway... 186 187 except ValueError: 187 188 logger.info(eduplicate % jamb) 188 189 continue 190 # Can not happen, but anyway... 189 191 except KeyError: 190 192 pume.addRecord(**dict) … … 204 206 no_import.append(eduplicate % jamb) 205 207 continue 206 try: 207 pume.addRecord(**dict) 208 ok_import.append(import_format % dict) 209 except ValueError: 210 logger.info(eduplicate % jamb) 211 #em = 'Student with REG-NO %(jamb_reg_no)s already exists\n' % dict 212 #logger.info(em) 213 no_import.append(eduplicate % jamb) 208 else: 209 try: 210 pume.addRecord(**dict) 211 ok_import.append(import_format % dict) 212 except ValueError: 213 logger.info(eduplicate % jamb) 214 #em = 'Student with REG-NO %(jamb_reg_no)s already exists\n' % dict 215 #logger.info(em) 216 no_import.append(eduplicate % jamb) 214 217 logger.info('End loading from %s.csv' % name) 215 218 if len(no_import) > 1:
Note: See TracChangeset for help on using the changeset viewer.