| 101 | | component = model.Component(self.env, ticket['component']) |
|---|
| 102 | | if component.owner: |
|---|
| 103 | | ## TODO: Is this an option? |
|---|
| 104 | | self.log.debug("LegacyTicketSubscriber added '%s' because of rule: component owner" % (component.owner,)) |
|---|
| 105 | | yield ('email', component.owner, True, None) |
|---|
| 106 | | |
|---|
| | 102 | try: |
|---|
| | 103 | # this throws an exception if the component does not exist |
|---|
| | 104 | component = model.Component(self.env, ticket['component']) |
|---|
| | 105 | if component.owner: |
|---|
| | 106 | ## TODO: Is this an option? |
|---|
| | 107 | self.log.debug("LegacyTicketSubscriber added '%s' because of rule: component owner" % (component.owner,)) |
|---|
| | 108 | yield ('email', component.owner, True, None) |
|---|
| | 109 | except ResourceNotFound, message: |
|---|
| | 110 | self.log.warn("LegacyTicketSubscriber couldn't add component owner because component was not found, message: '%s'" % (message,)) |
|---|
| | 111 | |
|---|