Hi All My shell script is not throwing any error when I am having some error in Python code.
~~~~~~~~ test.py ~~~~~~ def main(): print "Test" #some case error need to be thrown raise Exception("Here is error") if __name__ == "__main__" main() ~~~~~~ ~~~~~~~~ second.py ~~~~~~ def main(): print "Second function is called" if __name__ == "__main__" main() ~~~~~~ ~~~~~ shellTest.sh ~~~~~~~ python test.py python second.py ~~~~~~~~~~~~~~~~~~~~~~~ In this case, I dont want to run my second.py Even I am throwing error from my test.py, but still second.py is getting executed, which i dont want, Thanks & Regards Jitendra
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor