I'm not sure about that, but isn't the sys.exc_info already available through kwargs.get('exc_info') (see line 84/91).
I feel it would be safer to use it.