Possible Duplicate:
Don't show Python raise-line in the exception stack
Built in exceptions like NameError
etc. give me a traceback to the point in my code where the exception occurred. I'm working on a utility module and it bugs me that if code using my module raises and exception the last thing in the traceback before the exception is my raise WhateverError
.
Is there any way to raise an exception in python and have the tracback stop one frame up ala the builtin exceptions (without writing c code)?