Commit 6f82948d authored by Tom Underhill's avatar Tom Underhill

Fix to handle non-UTF8 files when searching for configs

parent dc1bd793
......@@ -129,7 +129,7 @@ def config_json():
for root, dirs, filenames in os.walk(STORJCONFIG):
for f in filenames:
# consume config file
with open(os.path.join(root, f), 'r') as f_open:
with open(os.path.join(root, f), 'r', encoding = "ISO-8859-1") as f_open:
print("Parsing config file: " + os.path.join(root, f))
node = {}
f_data = f_open.read()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment