ClientException: <attribute 'message' of 'exceptions.BaseException' objects> (HTTP 503)
Bug #1295293 reported by
Johannes Erdfelt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If an error is returned from the server but the error code isn't known (like error 503), then a mostly useless error message of 'ClientException: <attribute 'message' of 'exceptions.
Most of the exceptions have a message attribute which provides a useful message, but ClientException itself doesn't and ends up retrieving the message attribute of the base Exception class.
Changed in python-novaclient: | |
milestone: | none → 2.18.0 |
Changed in python-novaclient: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/81876 /git.openstack. org/cgit/ openstack/ python- novaclient/ commit/ ?id=e43825bd1c6 7d22f012978c5de 6feff028c75d40
Committed: https:/
Submitter: Jenkins
Branch: master
commit e43825bd1c67d22 f012978c5de6fef f028c75d40
Author: Johannes Erdfelt <email address hidden>
Date: Thu Mar 20 11:11:12 2014 -0700
Print a useful message for unknown server errors
If a server error is returned that has an unknown code, novaclient will
end up printing something similar to:
ClientExcep tion: <attribute 'message' of 'exceptions. BaseException' objects>
Setting a message for ClientException will ensure that something more
useful than that is printed.
Change-Id: I43a2a33017f9a5 c1b79d7fd8af415 3e91d296f7b
Closes-bug: 1295293