##// END OF EJS Templates
Fix KeyError if old ipython_config.py is present.
Thomas Kluyver -
Show More
@@ -431,7 +431,7 b' def check_for_old_config(ipython_dir=None):'
431 for cfg in old_configs:
431 for cfg in old_configs:
432 f = os.path.join(ipython_dir, cfg)
432 f = os.path.join(ipython_dir, cfg)
433 if os.path.exists(f):
433 if os.path.exists(f):
434 if filehash(f) == old_config_md5[cfg]:
434 if filehash(f) == old_config_md5.get(cfg, ''):
435 os.unlink(f)
435 os.unlink(f)
436 warn.info("Removed unmodified old IPython config file %r"%f)
436 warn.info("Removed unmodified old IPython config file %r"%f)
437 else:
437 else:
General Comments 0
You need to be logged in to leave comments. Login now