def value_from_raw(self, raw):
        if raw.value is None:
            return raw.missing_value('Missing sort key')
        try:
            return int(raw.value.strip())
        except __HOLE__:
            return raw.bad_value('Bad sort key value')
dataset/ETHPy150Open lektor/lektor-archive/lektor/types/special.py/SortKeyType.value_from_raw