Bug #437
Feature #403: Perseus Book Importer
Importer fails on divisions with no type
Start date:
Due date:
% Done:
100%
Description
Imports fail on 53 works with no type attribute:
reader.importer.PerseusBatchImporter: Exception generated when attempting to process file="52_gk.xml" Traceback (most recent call last): File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/PerseusBatchImporter.py", line 326, in process_directory if self.__process_file__( os.path.join( root, f) ): ... 7 lines omitted ... return func(*args, **kwargs) File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/Perseus.py", line 582, in import_xml_document divisions = self.import_body_sub_node(body_node, current_state_set) File "/Users/lmurphey/Documents/SP/Workspace/TextCritical.com/src/reader/importer/Perseus.py", line 968, in import_body_sub_node if state.name.lower() == division_type.lower() and state.level is not None: AttributeError: 'NoneType' object has no attribute 'lower'
Associated revisions
Fixed issue where importer fails on works that have division with no type field. Reference #437.
Fixed issue where importer fails on works that have division with no type field. Reference #437.
Fixed issue where importer fails on works that have division with no type field. Reference #437.
History
#1 Updated by Luke Murphey about 12 years ago
- Subject changed from Importer: fails on divisions with no type to Importer fails on divisions with no type
#2 Updated by Luke Murphey about 12 years ago
- Parent task set to #403
#3 Updated by Luke Murphey about 12 years ago
- Description updated (diff)
#4 Updated by Luke Murphey about 12 years ago
- Status changed from New to In Progress
#5 Updated by Luke Murphey about 12 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100