witten
/
luminotes
Archived
1
0
Fork 0

Fixed bug in which an incorrectly detected CSV header or an invalid note_id value could break an entire CSV import. Now just ignoring invalid note_id values.

This commit is contained in:
Dan Helfman 2008-09-26 22:23:38 -07:00
parent c04475fc7e
commit 32da3d3db2
1 changed files with 5 additions and 1 deletions

View File

@ -1865,7 +1865,11 @@ class Notebooks( object ):
# if there is a note id column, then map the original CSV note id to its new imported note id
if note_id_column:
original_note_id = Valid_id( none_okay = True )( row[ note_id_column ].strip() )
try:
original_note_id = Valid_id( none_okay = True )( row[ note_id_column ].strip() )
except ValueError:
original_note_id = None
if original_note_id:
note_ids[ original_note_id ] = note_id