Added explicit exception class to except clause

It's generally bad form to have a global, catch-all except clause. Fixed.