diff options
| author | Dan Prince <dprince@redhat.com> | 2012-08-09 22:16:33 -0400 |
|---|---|---|
| committer | Dan Prince <dprince@redhat.com> | 2012-08-09 22:25:26 -0400 |
| commit | 7219577ba48df211713cab655cdd296a07f35773 (patch) | |
| tree | cc278304fd159f8e24be834f0d7b183ac442125d /nova/openstack | |
| parent | 043e3f5981d89d35aa8bb8f1c42561c38451dfc4 (diff) | |
| download | nova-7219577ba48df211713cab655cdd296a07f35773.tar.gz nova-7219577ba48df211713cab655cdd296a07f35773.tar.xz nova-7219577ba48df211713cab655cdd296a07f35773.zip | |
Make FaultWrapper handle exception code = None.
Updates the FaultWrapper middleware so that it properly handles
exceptions which contain a code variable set to None. Previously
you'd get TypeError exception like this in the api.log file:
TypeError: %d format: a number is required, not NoneType
This was due to the fact that we tried to format a string with
an integer value which was set to None.
I hit this today when using Qpid which does in fact throw exceptions
which contain 'code' variables set to None.
Fixes LP Bug #1035159.
Change-Id: I7193031b1f5f9bf84cdb476f8f1268efc50eadf0
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions
