forked from r4sas/PBinCLI
Set maxsplit in configuration parser (#34)
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
3c2cdb10ac
commit
f05f65ea61
@ -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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user