In Python, can I use try and except when calling functions from my core function, and error checking that the called functions are succeeding? Is this a good way to structure your script with the core function calling functions and sandwiching them in try/except statements to manage errors? If the called functions throw an error or a False, will the try in the core function manage that?
def core_function():
try:
function_a()
except_Exception as e:
print(e)
try:
function_b()
except Exception as E:
print(e)
def function_a()
#this will error
print 1 + 'a'
return True
def function_b()
print 1 + 1
return True