Hi Community,
We have a python script tool that runs successfully in ArcGIS Pro and we have published it to ArcGIS Enterprise successfully as a WebTool.
On running the tool from REST endpoint we are getting the error of "Unterminated string literal".
Attached is the screenshot.

Attaching snippet of script for reference.
Any inputs on this would be appreciated.