Closed Bug 1112649 Opened 10 years ago Closed 10 years ago

Treeherder exceptions don't always print out properly on console

Categories

(Tree Management :: Treeherder, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wlach, Assigned: wlach)

Details

Attachments

(1 file)

Because we only have a __unicode__ representation of some treeherder exceptions, they don't print out properly on the console (you need a __str__ representation for that). It looks like Django has a method called `python_2_unicode_compatible` which should solve this problem and prepare us for Python 3.0 as a bonus:

https://docs.djangoproject.com/en/1.6/topics/python3/#str-and-unicode-methods
Attachment #8537926 - Flags: review?(mdoglio)
Attachment #8537926 - Flags: review?(mdoglio) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Component: Treeherder → Treeherder: Docs & Development
Component: Treeherder: Docs & Development → TreeHerder
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: