ArcGIS Pro tells me there is a syntax error when I run the single tool in this toolbox. Contrary to what the doc page for ERROR 00989 says it does not report what or where the error is. I can't find it visually and `python -m compileall ImageRepo.pyt` says it's fine. Can any of you see what is wrong?
I'm using ArcGIS Pro v2.8.1.
The toolbox: https://gist.github.com/maphew/0bae6f3005ca129f2a9566e343cf37d7

GdalToCog
=====================
Parameters
Input Raster Finlayson124_SP6_13Sep2017_150cm_pro_nd.tif
Output Raster
\work\ImgRepo\2021-06-10\pro_pyt_to_cog.tif
=====================
Messages
ERROR 000989: Python syntax error: within script T:\ENV.558\ImageRepo.pyt