Fix exception type in configuration

@eteq - I think this is correct? I came across it because I was trying to import from source in an affiliated package. This is needed because the code in ``__init__.py`` will catch only ``ValueError``.