doc spell fixing

This commit is contained in:
Matthias 2021-12-02 09:46:50 +01:00
parent 4e29fed164
commit 803936130c
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -19,16 +19,16 @@ class NotificationMethod:
method_name = '' method_name = ''
def __init__(self, obj, entry_name, receivers) -> None: def __init__(self, obj, entry_name, receivers) -> None:
# check if a sending fnc is defined # Check if a sending fnc is defined
if (not hasattr(self, 'send')) and (not hasattr(self, 'send_bulk')): if (not hasattr(self, 'send')) and (not hasattr(self, 'send_bulk')):
raise NotImplementedError('A NotificationMethod must either define a `send` or a `send_bulk` method') raise NotImplementedError('A NotificationMethod must either define a `send` or a `send_bulk` method')
# define arguments # Define arguments
self.obj = obj self.obj = obj
self.entry_name = entry_name self.entry_name = entry_name
self.receivers = receivers self.receivers = receivers
# gather recipients # Gather recipients
self.recipients = self.get_recipients() self.recipients = self.get_recipients()
def get_recipients(self): def get_recipients(self):