diff --git a/scripts/windows-builder.py b/scripts/windows-builder.py index e99de670b..be9f7d6aa 100644 --- a/scripts/windows-builder.py +++ b/scripts/windows-builder.py @@ -194,7 +194,8 @@ def write_version_file(): code = bzr.wait() if code != 0: raise Exception(u'Error running bzr log') - latest = output.split(u':')[0] + outputAscii = unicode(output, errors='ignore') + latest = outputAscii.split(u':')[0] versionstring = latest == revision and tag or u'%s-bzr%s' % (tag, latest) f = open(os.path.join(dist_path, u'.version'), u'w') f.write(versionstring)