Fix extraneous "None" in ticket_comment email

This commit is contained in:
Drew DeVault 2021-05-18 12:24:11 -04:00
parent 4d7cd02bd7
commit e087f50a96
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ def _send_comment_notification(subscription, ticket,
ticket=ticket,
comment=comment,
comment_text=format_lines(comment.text) if comment else "",
resolution=f"""Ticket resolved: {resolution.name}\n\n""" if resolution else None,
resolution=f"""Ticket resolved: {resolution.name}\n\n""" if resolution else "",
ticket_url=url)
def _change_ticket_status(ticket, resolve, resolution, reopen):