I'm writing an API and I have used some managed attributes because they are retrieved from network, therefore it may generate errors.
Inside the getter-setter I want to check if API user have used a try clause around the attribute get/set.
def getter_or_setter():
try:
network_operations()
except:
if called_inside_try():
raise
else:
log.error('error string')