ClientException: <attribute 'message' of 'exceptions.BaseException' objects> (HTTP 503)

Bug #1295293 reported by Johannes Erdfelt
6
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.BaseException' objects> (HTTP 503)' is printed.

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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/81876
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=e43825bd1c67d22f012978c5de6feff028c75d40
Submitter: Jenkins
Branch: master

commit e43825bd1c67d22f012978c5de6feff028c75d40
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:

    ClientException: <attribute 'message' of 'exceptions.BaseException' objects>

    Setting a message for ClientException will ensure that something more
    useful than that is printed.

    Change-Id: I43a2a33017f9a5c1b79d7fd8af4153e91d296f7b
    Closes-bug: 1295293

Changed in python-novaclient:
status: New → Fix Committed
Michael Still (mikal)
Changed in python-novaclient:
milestone: none → 2.18.0
Michael Still (mikal)
Changed in python-novaclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.