Change base Exception to UnsupportedRecurrence

This commit is contained in:
Matt Snider
2019-06-30 11:38:37 +02:00
parent c4815955ef
commit 7f5e9708dc
3 changed files with 14 additions and 3 deletions

View File

@ -0,0 +1,9 @@
""" Custom Errors """
class UnsupportedRecurrence(Exception):
def __init__(self, date_string):
super().__init__('Unsupported recurrence: %s' % date_string)
self.date_string = date_string