astropy/astropy — pull request #225 by eteq (2012-05-07 12:22:42+00:00)
Title: log exception-capturing fixes

This makes two minor changes to how the astropy logger fomats exceptions:

* It adds the name of the exception to the message (like the warnings)
* it uses ``str(exc)`` to get the message itself, instead of ``exc.args[0]``. The latter was failing for cases like ``raise ValueError`` because it has no `args`.