Project

General

Profile

Bug #437

Updated by Luke Murphey over 11 years ago

Imports fail on 53 works with no type attribute:

<pre>
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'
</pre>

Back