AnsweredAssumed Answered

What is the correct or best way to make a python / arcpy script bail out?

Question asked by GSCUser85 Champion on Sep 19, 2014
Latest reply on Sep 19, 2014 by curtvprice

You know, the script runs, check various inputs and so forth.

If a requirement is not met, eg the feature is not the correct type or something, then bail out and print a meaningful message.

Currently I use sys.exit(), but this is not ideal and throws an error in python.

So, how do the experts do it?

Thanks in advance,