catching TypeError hides root cause
Bug #376770 reported by
Edwin Grubbs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restful |
Triaged
|
Low
|
Unassigned |
Bug Description
In _operation.py, catching the TypeError can hide errors in toDataForJSON() methods defined for new custom types. It would be nice to either log the the original traceback or include some of its info with the new TypeError.
try:
import pdb; pdb.set_trace()
except TypeError:
raise TypeError("Could not serialize object %s to JSON." %
Changed in lazr.restful: | |
status: | New → Triaged |
importance: | Undecided → Low |
To post a comment you must log in.