Use new style exceptions.
Merge pull request #270 from linovia/getsentry_master

Use new style exceptions.