Set maxsplit in configuration parser (#34)

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
Georg
2022-01-24 04:13:26 +00:00
committed by GitHub
parent 3c2cdb10ac
commit f05f65ea61

View File

@@ -23,7 +23,7 @@ def read_config(filename):
if len(l.strip()) == 0:
continue
try:
key, value = l.strip().split("=")
key, value = l.strip().split("=", 1)
settings[key.strip()] = value.strip()
except ValueError:
PBinCLIError("Unable to parse config file, please check it for errors.")