From e4a60c8063dfde7adcc670c28763e03da92e199c 2011-08-01 21:26:25 From: MinRK Date: 2011-08-01 21:26:25 Subject: [PATCH] still raise IOError on missing config file commit 0aa0be7060c2b1f13858abd4287b89c182aa7fb0 prevented creation of new profiles, because IOError is expected to be handled at a higher level. Now, IOErrors still propagate, and other errors cause warning messages. --- diff --git a/IPython/config/application.py b/IPython/config/application.py index f7985c4..c9cbf15 100644 --- a/IPython/config/application.py +++ b/IPython/config/application.py @@ -369,7 +369,11 @@ class Application(SingletonConfigurable): loader = PyFileConfigLoader(filename, path=path) try: config = loader.load_config() + except IOError: + # problem with the file (probably doesn't exist), raise + raise except Exception: + # problem while running the file self.log.error("Exception while loading config file %s [path=%s]"% (filename, path), exc_info=True) else: