~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/adapters/notification.py

[r=julian-edwards][bug=796705] Deal with no recipients when rejecting
        inside reject_changes_file().

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    body = template % information
66
66
    to_addrs = get_recipients(
67
67
        blamer, archive, distroseries, logger, changes=changes)
68
 
    logger.debug("Sending rejection email.")
 
68
    debug(logger, "Sending rejection email.")
 
69
    if not to_addrs:
 
70
        debug(logger, "No recipients have a preferred email.")
 
71
        return
69
72
    send_mail(None, archive, to_addrs, subject, body, False, logger=logger)
70
73
 
71
74