Skip to content

Commit

Permalink
chore: add fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
AfaqShuaib09 committed Jul 13, 2023
1 parent 894c37e commit cf2c10e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions course_discovery/apps/course_metadata/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ def send_email_to_watchers(course, template_name, subject, context=None):
email_msg.send()
except Exception as exc: # pylint: disable=broad-except
logger.exception(
'Failed to send email notification for template %s, with subject "%s" to watchers %s: %s',
template_name, subject, to_users, exc
f'Failed to send email notification with subject "{subject}" to users {to_users}. Error: {exc}'
)


Expand Down

0 comments on commit cf2c10e

Please sign in to comment.