Hello Everyone,
I have a model which runs the calculate value tool:

The code in the tool is:

When the model runs the following errors are displayed:

I'm not sure what the errors are related to. What's strange is that the code does seem to execute: it displays the extent of the site_polygon layer, sets the scale to 1:4000, then creates the JPG file.
Any insights appreciated. Thanks!