Skip to content

Commit

Permalink
Invalid generator rules should throw an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
aleray committed Jun 16, 2012
1 parent 416a308 commit 2f84e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventtools/models/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f84e74

Please sign in to comment.