Bug 1252440 - Ignore unicode characters that cannot be converted when building graph r=wcosta draft
authorGregory Arndt <garndt@mozilla.com>
Tue, 01 Mar 2016 07:41:27 -0600
changeset 335770 8017da70c25ebad992b3e4cf7b5d473abceedd29
parent 335769 e3a41a0486eebca77e59e90d1585ffe9c53e4851
child 515208 82850668b96256cff5f403f86becbfa23fc7d898
push id11867
push usergarndt@mozilla.com
push dateTue, 01 Mar 2016 13:41:42 +0000
reviewerswcosta
bugs1252440
milestone47.0a1
Bug 1252440 - Ignore unicode characters that cannot be converted when building graph r=wcosta MozReview-Commit-ID: 5CxG7NMivBO
testing/taskcluster/mach_commands.py
--- a/testing/taskcluster/mach_commands.py
+++ b/testing/taskcluster/mach_commands.py
@@ -332,17 +332,17 @@ class Graph(object):
         changed_files = set()
         if vcs_info:
             pushdate = time.strftime('%Y%m%d%H%M%S', time.gmtime(vcs_info.pushdate))
 
             sys.stderr.write('%d commits influencing task scheduling:\n' %
                              len(vcs_info.changesets))
             for c in vcs_info.changesets:
                 sys.stderr.write('%s %s\n' % (
-                    c['node'][0:12], c['desc'].splitlines()[0]))
+                    c['node'][0:12], c['desc'].splitlines()[0].encode('ascii', 'ignore')))
 
                 changed_files |= set(c['files'])
 
         # Template parameters used when expanding the graph
         seen_images = {}
         parameters = dict(gaia_info().items() + {
             'index': 'index',
             'project': project,