Skip to content

Commit

Permalink
Merge from 3.x: PR #3599
Browse files Browse the repository at this point in the history
Fixes #3127
  • Loading branch information
ccordoba12 committed Oct 25, 2016
2 parents 58951d0 + 83e9bc0 commit 793628d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions spyder/config/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 793628d

Please sign in to comment.