TireSwingSoftware/openassign-server — Issue #84: BaseException.message is deprecated
Author: mhrivnak
Created: 2012-01-22 06:57:59+00:00
State: open
Labels: low-priority

pr_services/testlib/__init__.py references the "message" attribute of a TypeError instance. There may be other places in the code that use BaseException.message. We should stop using it, since it was deprecated in python 2.6 and will not be available in 2.7.

Instead, I think the intended solution is this:

* Pass a string message as the first argument to an exception constructor.
* to read the message, simply read the string representation of the exception instance.