Turn more into ignorable exceptions so we can collect them all for one round of parsing
authorMagnus Hagander <magnus@hagander.net>
Mon, 25 Jun 2012 16:12:02 +0000 (18:12 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 25 Jun 2012 16:12:02 +0000 (18:12 +0200)
loader/lib/parser.py

index 47f0ff2ea181c41a05c99da10ee796596204bd4f..4c95445ee7ee68744c0cd042a530ff426a4b3256 100644 (file)
@@ -232,8 +232,7 @@ class ArchivesParser(object):
                                dp = datetime.datetime(*dp.utctimetuple()[:6])
                        return dp
                except Exception, e:
-                       log.log("Failed to parse date '%s'" % d)
-                       raise e
+                       raise IgnorableException("Failed to parse date '%s': %s" % (d, e))
 
        def _decode_mime_header(self, hdr):
                if hdr == None: