def multiply(value, amount):
    'Filter to convert value to float and multiply it.'
    try:
        return (float(value) * amount)
    except (ValueError, TypeError):
        return value
Filter to convert value to float and multiply it.
def multiply(value, amount):
    
    try:
        return (float(value) * amount)
    except (ValueError, TypeError):
        return value