Oops. Don't wipe out configuration files :) :/
This commit is contained in:
1 parent
f2780e528a
commit
542aa18749
1 file changed
+1
-1
@@ -37,7 +37,7 @@ def sanitize_config_file(path):
|
||||
conf = open(path)
|
||||
newconf = ''
|
||||
for line in conf:
|
||||
if '[' not in line or '=' not in line:
|
||||
if '[' in line or '=' in line:
|
||||
newconf += line
|
||||
conf.close()
|
||||
conf = open(path, 'w')
|
||||
|
||||
Reference in new issue
Block a user