[Buildbot-devel] gitpoller UnicodeDecodeError exception

Amber Yust ayust at yelp.com
Wed Jun 8 22:20:01 UTC 2011


It's a known issue when a commit message (or other commit metadata) contains
non-ascii characters.

~Amber

On Wed, Jun 8, 2011 at 2:59 PM, Rod Morison <rod at morison.biz> wrote:

>  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)
>
>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20110608/258e8c10/attachment.html>


More information about the devel mailing list