[Buildbot-commits] [Buildbot] #2528: UnicodeEncodeError when using unicode subject in MailNotifier
Buildbot trac
trac at buildbot.net
Fri Jul 5 22:43:40 UTC 2013
#2528: UnicodeEncodeError when using unicode subject in MailNotifier
-------------------+-----------------------
Reporter: rutsky | Owner:
Type: defect | Status: new
Priority: major | Milestone: undecided
Version: master | Keywords:
-------------------+-----------------------
Buildbot raises `UnicodeEncodeError` when trying to use `MailNotifier`
with unicode subject:
{{{
from buildbot.status.mail import MailNotifier
mn = MailNotifier(fromaddr="buildbot at example.org", lookup="example.org",
subject=u"Schrödinger")
c['status'].append(mn)
}}}
exception:
{{{
2013-07-06 02:40:59+0400 [-] while starting BuildMaster
Traceback (most recent call last):
File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1127, in gotResult
_inlineCallbacks(r, g, deferred)
File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1071, in _inlineCallbacks
result = g.send(result)
File "/home/bob/stuff/buildbot/git/master/buildbot/config.py",
line 730, in reconfigService
yield svc.reconfigService(new_config)
File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1214, in unwindGenerator
return _inlineCallbacks(None, gen, Deferred())
--- <exception caught here> ---
File "/home/bob/stuff/buildbot/env/local/lib/python2.7/site-
packages/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1071, in _inlineCallbacks
result = g.send(result)
File
"/home/bob/stuff/buildbot/git/master/buildbot/status/master.py", line 88,
in reconfigService
sr.setServiceParent(self)
File
"/home/bob/stuff/buildbot/git/master/buildbot/status/mail.py", line 391,
in setServiceParent
self.master_status.subscribe(self)
File
"/home/bob/stuff/buildbot/git/master/buildbot/status/master.py", line 317,
in subscribe
self.announceNewBuilder(target, name, self.getBuilder(name))
File
"/home/bob/stuff/buildbot/git/master/buildbot/status/master.py", line 327,
in announceNewBuilder
builder_status.subscribe(t)
File
"/home/bob/stuff/buildbot/git/master/buildbot/status/builder.py", line
437, in subscribe
self.status._builder_subscribe(self.name, receiver)
File
"/home/bob/stuff/buildbot/git/master/buildbot/status/master.py", line 446,
in _builder_subscribe
self._builder_observers.add(buildername, watcher)
File
"/home/bob/stuff/buildbot/git/master/buildbot/util/bbcollections.py", line
26, in add
self.d[key].add(value)
File
"/home/bob/stuff/buildbot/git/master/buildbot/util/__init__.py", line 82,
in __hash__
return hash(tuple(map(str, alist)))
exceptions.UnicodeEncodeError: 'ascii' codec can't encode
character u'\xf6' in position 4: ordinal not in range(128)
}}}
--
Ticket URL: <http://trac.buildbot.net/ticket/2528>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list