Changeset 1404
- Timestamp:
- 09/09/08 16:03:55 (2 months ago)
- Files:
-
- PleiadesEntity/trunk/Extensions/loader.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
PleiadesEntity/trunk/Extensions/loader.py
r1401 r1404 32 32 import re 33 33 from os.path import basename 34 import logging 34 35 35 36 import lxml.etree as etree … … 110 111 failures = [] 111 112 count = 0 113 log = logging.getLogger("pleiades.entity") 112 114 for xml in glob.glob("%s/*.xml" % sourcedir): 113 115 try: … … 115 117 count += 1 116 118 except Exception, e: 117 failures.append([basename(xml), str(e)])119 log.error("Failed to load %s", xml, exc_info=1) 118 120 119 121 if len(failures) == 0: … … 469 471 featureType=placeType, 470 472 associationCertainty='certain', 473 creators=creators, 474 contributors=contributors, 475 rights=rights, 476 description=description, 471 477 ) 472 478 f = features[fid]
