python-lambda icon indicating copy to clipboard operation
python-lambda copied to clipboard

TypeError: str expected, not int

Open aluciffer opened this issue 6 years ago • 2 comments

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() ?

aluciffer avatar Aug 09 '19 15:08 aluciffer

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

urandu avatar Oct 20 '19 17:10 urandu

Here is the PR https://github.com/nficano/python-lambda/pull/270

urandu avatar Oct 20 '19 17:10 urandu