Error when character '%' in botname
Closed this issue · 2 comments
M1ch43lV commented
config.parser can not deal with single character '%' in botname. Solution is to replace % in botname with %%.
galaxyscore.py
# Walk through all bots configured
for thebot in thebotids:
if not cfg.has_section(f"bot_{thebot}"):
error, data = theapi.request(
entity="bots",
action="show",
action_id=str(thebot),
)
if data:
# Add new config section
cfg[f"bot_{thebot}"] = {
"maxaltrankscore": default_maxaltrankscore,
"numberofpairs": default_numberofpairs,
"originalmaxdeals": int(data["max_active_deals"]),
"allowmaxdealchange": False,
==> "comment": data["name"].replace('%','%%'),
}
cyberjunky commented
Thanks will update code soon!
cyberjunky commented
I have updated the code (took a bit longer to find some time) thanks again!