Fix syntax error in dictionary key iteration

Corrected the for loop syntax for initializing parameters by removing an extraneous comma that caused a tuple unpacking error when iterating over dictionary keys. This change allows proper parameter initialization without errors.
This commit is contained in:
Kumi 2024-02-05 13:37:59 +01:00
parent a6a6705dba
commit 8f0ff4a43f
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -40,7 +40,7 @@ class limr:
in_arg = json.loads(p.stdout.read().decode("utf-8"))
# initialize the parameters
for key, in in_arg.keys():
for key in in_arg.keys():
in_arg[key]["argument"] = []
setattr(self, key, [])