Skip to content

Commit b86ab6d

Browse files
Fix: Naming in template, logging (#28)
* fix: update invite and ticket templates * fix: add loggers for custom global exception, change event to eventName in invite.html * fix: change updateLink to updatesLink
1 parent 723606c commit b86ab6d

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/utils/exceptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from fastapi import HTTPException, Request
66
from app.utils import error_response
7-
7+
import logging
88

99
async def custom_http_exception_handler(request: Request, exc: HTTPException):
1010
"""
@@ -21,6 +21,7 @@ async def custom_general_exception_handler(request: Request, exc: HTTPException)
2121
"""
2222
Custom handler for unanticipated exceptions.
2323
"""
24+
logging.error(f"AttributeError: {exc} | Occurred in: {request.url}")
2425
return error_response(
2526
status_code=500, message="Something went wrong. Try again later.", body=None
2627
)

templates/rsvp/ticket.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<p
6363
style="font-size: 1.125rem; line-height: 1.75rem; margin: 16px 0 1.5rem 0; color: rgb(255, 255, 255);"
6464
>
65-
Your {{event}} ticket is confirmed!
65+
Your {{eventName}} ticket is confirmed!
6666
</p>
6767
<table
6868
align="center"

templates/rsvp/update.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<tbody>
5151
<tr>
5252
<td>
53-
<a href="{{updateLink}}" target="_blank" style="color: white; text-decoration: none; font-size: 14px;">Check Updates</a>
53+
<a href="{{updatesLink}}" target="_blank" style="color: white; text-decoration: none; font-size: 14px;">Check Updates</a>
5454
</td>
5555
</tr>
5656
</tbody>

0 commit comments

Comments
 (0)