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

« back to all changes in this revision

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

  • Committer: James Westby
  • Date: 2012-12-05 17:30:35 UTC
  • mto: This revision was merged to the branch mainline in revision 50.
  • Revision ID: james.westby@canonical.com-20121205173035-0jh3yye5ohr5o884
Decode report when reading it to send email.

Also adjust the logging path for the prune script.

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)