Changeset 14310:2443ec5b2279 in mirror
- Timestamp:
- Sep 25, 2023, 2:14:31 AM (4 days ago)
- Branch:
- trunk
- Phase:
- draft
- Convert:
- [17726]
- Location:
- trac
- Files:
-
- 2 edited
-
notification/api.py (modified) (3 diffs)
-
ticket/web_ui.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trac/notification/api.py
r14241 r14309 23 23 from trac.core import Component, Interface, ExtensionPoint 24 24 from trac.util import as_bool, lazy, to_list 25 from trac.util.text import exception_to_unicode 25 26 26 27 … … 209 210 self.author = author 210 211 212 def __repr__(self): 213 return '<%s realm=%r, category=%r, target=%r, time=%r, author=%r>' % \ 214 (self.__class__.__name__, self.realm, self.category, 215 self.target, self.time, self.author) 216 211 217 212 218 class NotificationSystem(Component): … … 354 360 :param event: a `NotificationEvent` 355 361 """ 356 self.distribute_event(event, self.subscriptions(event)) 362 try: 363 self.distribute_event(event, self.subscriptions(event)) 364 except Exception as e: 365 self.log.error("Failure distributing event %r%s", event, 366 exception_to_unicode(e, traceback=True)) 367 raise 357 368 358 369 def distribute_event(self, event, subscriptions): -
trac/ticket/web_ui.py
r14241 r14309 1348 1348 self.log.error("Failure sending notification on creation of " 1349 1349 "ticket #%s: %s", 1350 ticket.id, exception_to_unicode(e , traceback=True))1350 ticket.id, exception_to_unicode(e)) 1351 1351 add_warning(req, tag_("The ticket has been created, but an error " 1352 1352 "occurred while sending notifications: " … … 1388 1388 except Exception as e: 1389 1389 self.log.error("Failure sending notification on change to " 1390 "ticket #%s: %s", ticket.id,1391 exception_to_unicode(e, traceback=True))1390 "ticket #%s: %s", 1391 ticket.id, exception_to_unicode(e)) 1392 1392 # TRANSLATOR: The 'change' has been saved... (link) 1393 1393 change = _('change')
Note:
See TracChangeset
for help on using the changeset viewer.
