Permalink
Browse files

Safe string formatting

  • Loading branch information...
1 parent 15f5424 commit ac4448548edb8c2e67717a0fcd3e1e058191f5b4 @dcramer dcramer committed Oct 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sentry/plugins/sentry_mail/models.py
@@ -45,7 +45,7 @@ def clean_send_to(self):
emails = filter(bool, split_re.split(value))
for email in emails:
if not email_re.match(email):
- raise ValidationError('%s is not a valid e-mail address.' % email)
+ raise ValidationError('%s is not a valid e-mail address.' % (email,))
return ','.join(emails)

0 comments on commit ac44485

Please sign in to comment.