I am using ArcGIS 10.22
An error is coming in the python window "TypeError: GPToolDialog() takes at most 1 argument (2 given)"
But the tool seems working fine
The documentation says : GPToolDialog(toolbox, tool_name)
ArcGIS Help (10.2, 10.2.1, and 10.2.2)
Does anyone know the reason ?
Thanks
hmm... interesting. It sure does some weird things with stdout and stderr. I tried it with the print just now, but it didn't help in my case.
That work around doesn't work (at least in my case). I suspect that it is because the error is not actually raising an exception, therefore it cannot be trapped by the try. It simply logs an error without any actual real problems.
It's not a big deal, because the script continues to run fine. I would simply prefer it not to print spurious errors when an error hasn't actually occurred. 🙂