From 2f84e74f3729a7ec1c6bc6fd3593aeb6a1b7a418 Mon Sep 17 00:00:00 2001 From: Alexandre Leray Date: Sun, 17 Jun 2012 00:07:03 +0200 Subject: [PATCH] Invalid generator rules should throw an exception --- eventtools/models/rule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eventtools/models/rule.py b/eventtools/models/rule.py index 0ea323a7..a5ab132d 100644 --- a/eventtools/models/rule.py +++ b/eventtools/models/rule.py @@ -110,7 +110,7 @@ def get_rrule(self, dtstart): .replace("%-nthday%", "%s%s" % (minus_n, weekday)) try: return rrule.rrulestr(str(cr), dtstart=dtstart) - except: #Except what? + except ValueError: # eg. unsupported property pass params = self.get_params() frequency = 'rrule.%s' % self.frequency