Added explicit exception class to except clause