Revision 3d4a0a9b
b/snf-astakos-app/astakos/im/functions.py | ||
---|---|---|
591 | 591 |
dictionary={'object':application}) |
592 | 592 |
notification.send() |
593 | 593 |
except NotificationError, e: |
594 |
logger.error(e.messages)
|
|
594 |
logger.error(e) |
|
595 | 595 |
return application |
596 | 596 |
|
597 | 597 |
def approve_application(application): |
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