call exception.type instead of exception.class here
Merge branch 'master' of git://github.com/charliesome/better_errors