[Webkit-unassigned] [Bug 215330] New: [ews] Handle logs with unicode characters in ews emails

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 10 12:21:27 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=215330

            Bug ID: 215330
           Summary: [ews] Handle logs with unicode characters in ews
                    emails
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aakash_jain at apple.com

We added relevant log information in ews emails in r265302. However, logs with unicode characters results in following exception. We should handle them properly.

        Traceback (most recent call last): 
          File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1475, in gotResult
            _inlineCallbacks(r, g, status)
          File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1421, in _inlineCallbacks
            status.deferred.callback(getattr(e, "value", None)) 
          File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 460, in callback
            self._startRunCallbacks(result)
          File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
          File "steps.py", line 1401, in <lambda>
            d.addCallback(lambda res: self.analyzeResults())
          File "steps.py", line 1422, in analyzeResults
            self.send_email_for_new_build_failure()
          File "steps.py", line 1492, in send_email_for_new_build_failure
            email_text += '\n\nError lines:\n\n{}'.format(logs)
        exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\u2018' in position 108: ordinal not in range(128)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200810/94acd206/attachment-0001.htm>


More information about the webkit-unassigned mailing list