title: 'AssertionError' object has no attribute 'message'
body: <p>I'm dealing with form in django that once its filled sends an email to the user but im getting the following error:</p>
  <p><a href="https://i.stack.imgur.com/iMweb.png" rel="nofollow noreferrer">error image</a></p>
  <p>I have checked in my code and my problem comes from this function:</p>
  <pre><code>def send_manually_exception_email(request, e):
    exc_info = sys.exc_info()
    reporter = ExceptionReporter(request, is_email=True, *exc_info)
    subject = e.message.replace('\n', '\\n').replace('\r', '\\r')[:989]
    message = &quot;%s\n\n%s&quot; % (
      '\n'.join(traceback.format_exception(*exc_info)),
      reporter.filter.get_request_repr(request)
    )
    mail.mail_admins(subject, message, fail_silently=True, html_message=reporter.get_traceback_html())
  </code></pre>
  <p>What can I do?</p>