Handling case of weird OPML not having the right attrs.

This commit is contained in:
Samuel Clay 2011-06-10 11:25:50 -04:00
parent 7e1238f6a6
commit ed3ddf0b54

View file

@ -112,7 +112,7 @@ class OPMLImporter(Importer):
def process_outline(self, outline):
folders = []
for item in outline:
if not hasattr(item, 'xmlUrl'):
if not hasattr(item, 'xmlUrl') and hasattr(item, 'text'):
folder = item
# if hasattr(folder, 'text'):
# logging.info(' ---> [%s] ~FRNew Folder: %s' % (self.user, folder.text))