diff --git a/spyder/config/main.py b/spyder/config/main.py index 6ebaa4b18e3..f8827c9b376 100644 --- a/spyder/config/main.py +++ b/spyder/config/main.py @@ -591,10 +591,14 @@ CONF_VERSION = '29.0.0' # Main configuration instance -CONF = UserConfig('spyder', defaults=DEFAULTS, load=(not TEST), - version=CONF_VERSION, subfolder=SUBFOLDER, backup=True, - raw_mode=True) - +try: + CONF = UserConfig('spyder', defaults=DEFAULTS, load=(not TEST), + version=CONF_VERSION, subfolder=SUBFOLDER, backup=True, + raw_mode=True) +except: + CONF = UserConfig('spyder', defaults=DEFAULTS, load=False, + version=CONF_VERSION, subfolder=SUBFOLDER, backup=True, + raw_mode=True) # Removing old .spyder.ini location: old_location = osp.join(get_home_dir(), '.spyder.ini')