def default(default):
    def decorator(fn):
        def wrapped_func(self, *args, **kwargs):
            try:
                return fn(self, *args, **kwargs)
            except Exception as e:
                return {'success': False, 'result': default}
        return wrapped_func
    return decorator
Tries getting the value of the given field.
dataset/ETHPy150Open glennyonemitsu/MarkupHiveSDK/sdklib/api.py/default--crossover with--dataset/ETHPy150Open KimiNewt/pyshark/src/pyshark/packet/layer.py/Layer.get_field_value