Closed Bug 1149667 Opened 9 years ago Closed 5 years ago

[traceback] Unicode encoding problem in difflib

Categories

(support.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mythmon, Unassigned)

Details

(Whiteboard: u= c= p= s=)

Task tidings.events._fire_task[b13ece28-cc90-415f-95eb-df79b0b50e5b] raised unexpected: UnicodeEncodeError('ascii', u'[es] Instalar una versi\xf3n anterior de Firefox #90775', 23, 24, 'ordinal not in range(128)')

Stacktrace (most recent call last):

  File "celery/app/trace.py", line 240, in trace_task
    R = retval = fun(*args, **kwargs)
  File "newrelic/hooks/application_celery.py", line 66, in wrapper
    return wrapped(*args, **kwargs)
  File "celery/app/trace.py", line 438, in __protected_call__
    return self.run(*args, **kwargs)
  File "tidings/events.py", line 132, in _fire_task
    for m in self._mails(self._users_watching(exclude=exclude)):
  File "kitsune/wiki/events.py", line 217, in _mails
    context = context_dict(revision)
  File "kitsune/wiki/events.py", line 72, in context_dict
    fromfile=fromfile, tofile=tofile)),
  File "python2.7/difflib.py", line 1203, in unified_diff
    yield '--- {}{}{}'.format(fromfile, fromdate, lineterm)
I can offer the same issue in bug 1173395. A work around seems to just not have non-ASCII characters in the diff headers: https://github.com/mozilla/kuma/pull/3265
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.