'coercing to Unicode' failed in result submitting step
Bug #929794 reported by
Spring Zhang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Dispatcher |
New
|
Undecided
|
Unassigned |
Bug Description
Refer to: http://
Traceback (most recent call last):
File "/srv/lava/
job.run()
File "/srv/lava/
(cmd[
TypeError: coercing to Unicode: need string or buffer, OperationFailed found
To post a comment you must log in.
It looks like we need something like this:
try:
text = unicode(err)
except TypeError:
text = str(err)
text = str.encode("UTF-8", "replace")
As calling unicode on exception instanced does not seem to convert them to a string representation by calling __unicode__ (sadly).