asevtsuk

How to detect a manual user cancel in arcpy?

Discussion created by asevtsuk on Nov 23, 2011
Latest reply on Oct 22, 2012 by ddillard83
Hi,

I'm running a NA-based arcpy tool, and can't figure out how to tell the code when a user manually cancels the operation in the GUI? If that happens, we want the code to do some clean-up work, but we can't figure out how to let the code know that a user has pressed "cancel". Any thoughts?

Thanks,

Andres

Outcomes