[Buildbot-devel] gitpoller UnicodeDecodeError exception

Rod Morison rod at morison.biz
Wed Jun 8 21:59:00 UTC 2011


Run into the exception below in a log message formatting in 
gitpoller.py. Threw a try/except around it to catch the unicode error 
and seems to proceed fine. (Don't know enough about unicode exceptions 
to attempt a "real" fix.)

2011-06-08 14:33:03-0700 [-] Unhandled Error
         Traceback (most recent call last):
           File 
"/home/buildbot/python-envs/buildbot/lib/python2.6/site-packages/twisted/internet/defer.py", 
line 361, in callback
             self._startRunCallbacks(result)
           File 
"/home/buildbot/python-envs/buildbot/lib/python2.6/site-packages/twisted/internet/defer.py", 
line 455, in _startRunCallbacks
             self._runCallbacks()
           File 
"/home/buildbot/python-envs/buildbot/lib/python2.6/site-packages/twisted/internet/defer.py", 
line 542, in _runCallbacks
             current.result = callback(current.result, *args, **kw)
           File 
"/home/buildbot/python-envs/buildbot/lib/python2.6/site-packages/twisted/internet/defer.py", 
line 891, in gotResult
             _deferGenerator(g, deferred)
         --- <exception caught here> ---
           File 
"/home/buildbot/python-envs/buildbot/lib/python2.6/site-packages/twisted/internet/defer.py", 
line 866, in _deferGenerator
             result = g.next()
           File 
"/home/buildbot/python-envs/buildbot/lib/python2.6/site-packages/buildbot/changes/gitpoller.py", 
line 207, in _process_changes_in_output
             wfd.getResult()
           File 
"/home/buildbot/python-envs/buildbot/lib/python2.6/site-packages/twisted/internet/defer.py", 
line 845, in getResult
             self.result.raiseException()
           File 
"/home/buildbot/python-envs/buildbot/lib/python2.6/site-packages/twisted/internet/defer.py", 
line 542, in _runCallbacks
             current.result = callback(current.result, *args, **kw)
           File 
"/home/buildbot/python-envs/buildbot/lib/python2.6/site-packages/buildbot/changes/gitpoller.py", 
line 223, in _add_change
             self.parent.addChange(c)
           File 
"/home/buildbot/python-envs/buildbot/lib/python2.6/site-packages/buildbot/changes/manager.py", 
line 82, in addChange
             change.comments, change.category, change.project))
         exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 
0xc3 in position 7: ordinal not in range(128)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110608/9bb83d86/attachment.html>


More information about the devel mailing list