Skip to content

Commit

Permalink
home: views: Fix line length
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Verma <[email protected]>
  • Loading branch information
shank03 committed Oct 8, 2023
1 parent a3e2dff commit ce8aea8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,15 @@ def accept_issue_request(request, issue_req_pk):

try:
EmailThread(template_path, email_context).start()
message = f"Issue <a href={issue.html_url}>#{issue.number}</a> of Project <a href={issue.project.html_url}>" \
message = f"Issue <a href={issue.html_url}>#{issue.number}</a> of Project "\
f"<a href={issue.project.html_url}>" \
f"{issue.project.name}</a> successfully assigned to {requester}"
return HttpResponse(message)
except mail.BadHeaderError:
message = f"Issue <a href={issue.html_url}>#{issue.number}</a> of Project <a href={issue.project.html_url}>" \
f"{issue.project.name}</a> successfully assigned to {requester}, but there was some problem sending" \
message = f"Issue <a href={issue.html_url}>#{issue.number}</a> of Project "\
f"<a href={issue.project.html_url}>" \
f"{issue.project.name}</a> successfully assigned to {requester}, "\
f"but there was some problem sending" \
f"email to the {requester}"
return HttpResponse(message)
else:
Expand Down

0 comments on commit ce8aea8

Please sign in to comment.