def tangent(value):
    'Filter to get tangent of the value.'
    try:
        return math.tan(float(value))
    except (ValueError, TypeError):
        return value
Filter to get tangent of the value.
def tangent(value):
    
    try:
        return math.tan(float(value))
    except (ValueError, TypeError):
        return value