tCatch all exceptions from date parsing heuristics. - zs - Zeitungsschau rss to email converter
 (HTM) git clone git://r-36.net/zs
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit d618c2e01de3062741a3cf49902e09f0f6ad0dbd
 (DIR) parent 7c0ec28cb0f70e2eed6764b598387e5696af7575
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Mon, 11 Jun 2018 13:22:21 +0200
       
       Catch all exceptions from date parsing heuristics.
       
       Diffstat:
         zeitungsschau/feed.py               |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/zeitungsschau/feed.py b/zeitungsschau/feed.py
       t@@ -30,7 +30,7 @@ def parseiso(dstr, now):
                try:
                        return dateutil.parser.parse(str(dstr), default=now,
                                        tzinfos=gettzinfo)
       -        except ValueError:
       +        except:
                        # Invalid time format. Could not be parsed.
                        return now