-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
The [import] tag requires a string (that is interpreted as file). Therefore the value type must be checked. This is not implemented and the current error handling is insufficient.
Examples:
"[import]" : 123
Error: 'argument of type 'int' is not iterable
"[import]" : [1,2,3]
Error: ''list' object has no attribute 'strip'
"[import]" : {"A" : 1, "B" : 2}
Error: ''dict' object has no attribute 'strip'
"values" : {"A" : 1, "B" : 2},
"[import]" : ${values}['A']
Error: 'File '%values%['A']' is not existing!'!
Expected error handling:
- Check value type, error if not a string
- Check existence of file, error if file does not exist
- Check file content, error in case of content related error