diff options
| author | Johannes Erdfelt <johannes.erdfelt@rackspace.com> | 2011-08-08 19:48:07 +0000 |
|---|---|---|
| committer | Tarmac <> | 2011-08-08 19:48:07 +0000 |
| commit | 439afc337fec1064ff8eff58625f54f8450dce47 (patch) | |
| tree | 4394d1173c0293d061de910069b4949189470b94 /plugins | |
| parent | 047f6e0351c21ff2caff903731e61f10ac38e59d (diff) | |
| parent | 9788cddbf7833a82fc5589dd5f2869a309d1f657 (diff) | |
| download | nova-439afc337fec1064ff8eff58625f54f8450dce47.tar.gz nova-439afc337fec1064ff8eff58625f54f8450dce47.tar.xz nova-439afc337fec1064ff8eff58625f54f8450dce47.zip | |
nova.exception.wrap_exception will re-raise some exceptions, but in the process of possibly notifying that an exception has occurred, it may clobber the current exception information. nova.utils.to_primitive in particular (used by the notifier code) will catch and handle an exception clobbering the current exception being handled in wrap_exception. Eventually when using the bare 'raise', it will attempt to raise None resulting a completely different and unhelpful exception.
The patch saves the exception at the beginning of wrap_exception and then re-raises the original exception avoiding the possibility of a clobbered exception.
Diffstat (limited to 'plugins')
0 files changed, 0 insertions, 0 deletions
