def resource_error(func):
    def decorator(*args, **kwargs):
        try: return func(*args, **kwargs)
        except:
            failure = Failure()
            msg = getException(failure)
            msg += ': ' + failure.getErrorMessage()
            return NoResource(msg)
    return decorator
decorator the get child messages to indicate errors
dataset/ETHPy150Open OrbitzWorldwide/droned/droned/services/remote_config.py/resource_error