Uploaded image for project: 'MetaBrainz'
  1. MetaBrainz
  2. MEB-8

Invalid email address causes ERROR

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None
    • None

      If someone enters an invalid email address, we get this error reported.

      (e.g. example.como when it should be example.com )

      Message type: ERROR
      Location: /home/metabrainz/metabrainz.org/venv/lib/python2.7/site-packages/flask/app.py:1423
      Module: app
      Function: log_exception
      Time: 2015-05-19 16:54:48,701
      Message:
      Exception on /signup/noncommercial [POST]

      Traceback (most recent call last):
      File "/home/metabrainz/metabrainz.org/venv/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
      response = self.full_dispatch_request()
      File "/home/metabrainz/metabrainz.org/venv/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
      rv = self.handle_user_exception(e)
      File "/home/metabrainz/metabrainz.org/venv/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
      reraise(exc_type, exc_value, tb)
      File "/home/metabrainz/metabrainz.org/venv/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
      rv = self.dispatch_request()
      File "/home/metabrainz/metabrainz.org/venv/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
      return self.view_functions[rule.endpoint](**req.view_args)
      File "./metabrainz/users/_init_.py", line 20, in decorated
      return f(*args, **kwargs)
      File "./metabrainz/users/views.py", line 186, in signup_noncommercial
      recipients=[new_user.contact_email],
      File "./metabrainz/mail.py", line 48, in send_mail
      smtp_server.sendmail(from_addr, recipients, message.as_string())
      File "/usr/lib/python2.7/smtplib.py", line 733, in sendmail
      raise SMTPRecipientsRefused(senderrs)

            roman Roman
            rob Robert Kaye
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package