Fix exception type in configuration
Merge pull request #716 from astrofrog/config/fix-exception-type

Fix exception type in configuration