Skip to content

Commit c68d210

Browse files
committed
No longer complain about old config files
1 parent 40b300c commit c68d210

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

bpython/config.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,7 @@ def loadini(struct, configfile):
155155

156156
fill_config_with_default_values(config, defaults)
157157
try:
158-
if not config.read(config_path):
159-
# No config file. If the user has it in the old place then complain
160-
if os.path.isfile(os.path.expanduser("~/.bpython.ini")):
161-
sys.stderr.write(
162-
"Error: It seems that you have a config file at "
163-
"~/.bpython.ini. Please move your config file to "
164-
"%s\n" % default_config_path()
165-
)
166-
sys.exit(1)
158+
config.read(config_path)
167159
except UnicodeDecodeError as e:
168160
sys.stderr.write(
169161
"Error: Unable to parse config file at '{}' due to an "

0 commit comments

Comments
 (0)