Changeset 17650
- Timestamp:
- Jan 13, 2023, 11:28:41 AM (9 months ago)
- Location:
- branches/1.4-stable/trac
- Files:
-
- 2 edited
-
notification/api.py (modified) (3 diffs)
-
ticket/web_ui.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.4-stable/trac/notification/api.py
r17592 r17650 24 24 from trac.core import Component, Interface, ExtensionPoint 25 25 from trac.util import as_bool, lazy, to_list 26 from trac.util.text import exception_to_unicode 26 27 27 28 … … 210 211 self.author = author 211 212 213 def __repr__(self): 214 return '<%s realm=%r, category=%r, target=%r, time=%r, author=%r>' % \ 215 (self.__class__.__name__, self.realm, self.category, 216 self.target, self.time, self.author) 217 212 218 213 219 class NotificationSystem(Component): … … 371 377 :param event: a `NotificationEvent` 372 378 """ 373 self.distribute_event(event, self.subscriptions(event)) 379 try: 380 self.distribute_event(event, self.subscriptions(event)) 381 except Exception as e: 382 self.log.error("Failure distributing event %r%s", event, 383 exception_to_unicode(e, traceback=True)) 384 raise 374 385 375 386 def distribute_event(self, event, subscriptions): -
branches/1.4-stable/trac/ticket/web_ui.py
r17602 r17650 1373 1373 self.log.error("Failure sending notification on creation of " 1374 1374 "ticket #%s: %s", 1375 ticket.id, exception_to_unicode(e , traceback=True))1375 ticket.id, exception_to_unicode(e)) 1376 1376 add_warning(req, tag_("The ticket has been created, but an error " 1377 1377 "occurred while sending notifications: " … … 1413 1413 except Exception as e: 1414 1414 self.log.error("Failure sending notification on change to " 1415 "ticket #%s: %s", ticket.id,1416 exception_to_unicode(e, traceback=True))1415 "ticket #%s: %s", 1416 ticket.id, exception_to_unicode(e)) 1417 1417 # TRANSLATOR: The 'change' has been saved... (link) 1418 1418 change = _('change')
Note:
See TracChangeset
for help on using the changeset viewer.
