python-lambda
python-lambda copied to clipboard
TypeError: str expected, not int
Hi,
I get this 'str expected, not int' error that gets traced back to :
File "...\aws_lambda\aws_lambda.py", line 217, in invoke
os.environ[key] = get_environment_variable_value(value)
This is because i have configured an int variable in my config.yaml, i.e.:
repeat: 100
Would it be good to wrap get_environment_variable_value in str() ?
I think It would be good to wrap it in a str() like its done at this point https://github.com/nficano/python-lambda/blob/aad2dad8ec82e1c4eb4cd18d11245818d136693e/aws_lambda/aws_lambda.py#L662
Here is the PR https://github.com/nficano/python-lambda/pull/270