Is there any way to get meaningful error messages for python scripts?

Error Type: RuntimeError
Error Value: Script (Python) calendar_view_handler has errors.

doesn't exactly help me track down the error. there's nothing useful in the backtrace  >: (