equal
deleted
inserted
replaced
68 # error in post commit are not propagated |
68 # error in post commit are not propagated |
69 # We keep this logic here to prevent a small notification error |
69 # We keep this logic here to prevent a small notification error |
70 # to prevent them all. |
70 # to prevent them all. |
71 self.exception('Notification failed') |
71 self.exception('Notification failed') |
72 |
72 |
|
73 if self.cnx.vreg.config.mode == "test": |
|
74 # reraise in testing context because we actually want to |
|
75 # have those exceptions here and that self.exception is |
|
76 # filtered in test context |
|
77 raise |
|
78 |
73 |
79 |
74 class NotificationHook(hook.Hook): |
80 class NotificationHook(hook.Hook): |
75 __abstract__ = True |
81 __abstract__ = True |
76 category = 'notification' |
82 category = 'notification' |
77 |
83 |