-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
backlogenhancementNew feature or requestNew feature or requestprio 2ready for verifyingsuccessfully tested
Description
Code:
"intParam" : 1,
"dictParam" : {"A" : 1},
"param" : ${intParam}[${dictParam}]
Result:
Error: 'Invalid index or dictionary key in parameter '${intParam}[${dictParam}]'. The datatype of variable '${dictParam}' have to 'int' or 'str'.'!
That's wrong. The data type of ${dictParam} is irrelevant. Because of ${intParam} is of data type int. And integers cannot have an index or a key.
The same in pure Python:
intParam = 1
dictParam = {"A" : 1}
param = intParam[dictParam]
causes:
TypeError: 'int' object is not subscriptable
Either you take over this original error message from Python interpreter or you provide an own interpretation, something like:
TypeError: Integers cannot have an index or a key.
Metadata
Metadata
Assignees
Labels
backlogenhancementNew feature or requestNew feature or requestprio 2ready for verifyingsuccessfully tested