Skip to content

Commit

Permalink
fix for @None
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Apr 2, 2018
1 parent 8715f87 commit 8eba434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/retail/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def render_bounty_feedback(bounty, persona='submitter', previous_bounties=[]):
previous_bounties_str = ", ".join([bounty.github_url for bounty in previous_bounties])
if persona != 'submitter':
accepted_fulfillments = bounty.fulfillments.filter(accepted=True)
github_username = " @" + accepted_fulfillments.first().fulfiller_github_username if accepted_fulfillments.exists() else ""
github_username = " @" + accepted_fulfillments.first().fulfiller_github_username if accepted_fulfillments.exists() and accepted_fulfillments.first().fulfiller_github_username else ""
txt = f"""
hi{github_username},
Expand Down

0 comments on commit 8eba434

Please sign in to comment.