-
Committer:
Tarmac
-
Author(s):
Johannes Erdfelt
-
Date:
2011-08-08 19:48:07 UTC
-
mfrom:
(1392.1.2 lp822748)
-
Revision ID:
tarmac-20110808194807-91bb7acz6e47wzam
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.