Revision 3d4a0a9b snf-astakos-app/astakos/im/notifications.py
b/snf-astakos-app/astakos/im/notifications.py | ||
---|---|---|
75 | 75 |
self.recipients) |
76 | 76 |
except (SMTPException, socket.error), e: |
77 | 77 |
logger.exception(e) |
78 |
raise NotificationError() |
|
78 |
raise NotificationError(self)
|
|
79 | 79 |
|
80 | 80 |
class NotificationError(Exception): |
81 |
def __init__(self): |
|
82 |
self.message = _(astakos_messages.DETAILED_NOTIFICATION_SEND_ERR) % self.__dict__
|
|
81 |
def __init__(self, nofication):
|
|
82 |
self.message = _(astakos_messages.DETAILED_NOTIFICATION_SEND_ERR) % nofication.__dict__
|
|
83 | 83 |
super(NotificationError, self).__init__() |
Also available in: Unified diff