[Calypso] [PATCH] Also catch ValueError when attempting to parse rrulset.

Jelmer Vernooij jelmer at jelmer.uk
Tue Apr 5 13:08:27 PDT 2016


From: Jelmer Vernooij <jelmer at jelmer.uk>

---
 calypso/xmlutils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calypso/xmlutils.py b/calypso/xmlutils.py
index b9f728a..fef802f 100644
--- a/calypso/xmlutils.py
+++ b/calypso/xmlutils.py
@@ -272,7 +272,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")
-- 
2.8.0.rc3



More information about the Calypso mailing list