@@ -1524,24 +1524,25 @@ def _parse_iso(context, repos, exml):
15241524 if hasattr (md , 'dataquality' ):
15251525 try :
15261526 _set (context , recobj , 'pycsw:Degree' , ',' .join (md .dataquality .conformancedegree ))
1527- except :
1528- None
1529- try :
1527+ except IndexError :
1528+ LOGGER . debug ( 'No dq conformancedegree' )
1529+ try :
15301530 _set (context , recobj , 'pycsw:Lineage' , md .dataquality .lineage )
1531- except :
1532- None
1531+ except IndexError :
1532+ LOGGER . debug ( 'No dq lineage' )
15331533 try :
15341534 _set (context , recobj , 'pycsw:SpecificationTitle' , md .dataquality .specificationtitle )
1535- _set (context , recobj , 'pycsw:specificationDate' , md .dataquality .specificationDate [0 ])
1536- # owslib does not provide datetype
1537- # _set(context, recobj, 'pycsw:SpecificationDateType', md.dataquality.specificationDate[0].datetype)
1538- except :
1539- None
1535+ except IndexError :
1536+ LOGGER .debug ('No dq specification title' )
1537+ try :
1538+ _set (context , recobj , 'pycsw:SpecificationDate' ,
1539+ next (iter (md .dataquality .specificationDate ), None ))
1540+ except IndexError :
1541+ LOGGER .debug ('No dq specification date' )
15401542
15411543 if hasattr (md , 'contact' ) and len (md .contact ) > 0 :
15421544 _set (context , recobj , 'pycsw:ResponsiblePartyRole' , md .contact [0 ].role )
15431545
1544-
15451546 if hasattr (md , 'contentinfo' ) and len (md .contentinfo ) > 0 :
15461547 for ci in md .contentinfo :
15471548 if isinstance (ci , MD_ImageDescription ):
0 commit comments