Also catch ValueError when attempting to parse rrulset.
authorJelmer Vernooij <jelmer@jelmer.uk>
Mon, 4 Apr 2016 00:28:55 +0000 (00:28 +0000)
committerJelmer Vernooij <jelmer@jelmer.uk>
Sun, 10 Apr 2016 11:43:46 +0000 (11:43 +0000)
calypso/xmlutils.py

index f59d608..fc59fe0 100644 (file)
@@ -267,7 +267,7 @@ def match_filter_element(vobject, fe):
     elif fe.tag == _tag("C", "time-range"):
         try:
             rruleset = vobject.rruleset
-        except AttributeError:
+        except (AttributeError, ValueError):
             return False
         start = fe.get("start")
         end = fe.get("end")