~james-w/python-oops-tools/prod-deploy

« back to all changes in this revision

Viewing changes to src/oopstools/scripts/report.py

  • Committer: Tarmac
  • Author(s): James Westby
  • Date: 2012-12-05 18:15:47 UTC
  • mfrom: (48.2.1 decode-reports)
  • Revision ID: launchpad@pqm.canonical.com-20121205181547-j4spyy5u6y04suhj
Decode the report when reading it to send the email.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
            body_text = (
85
85
                'Full summary available at:\n'
86
86
                '   %s/%s.html\n\n' % (settings.SUMMARY_URI, report_filename))
87
 
            body_text += open(txt_file).read()
 
87
            body_text += open(txt_file).read().decode('utf-8', 'replace')
88
88
        else:
89
89
            body_text = "No %s OOPSes found for %s" % (
90
90
                report.title, yesterday_string)