def fix_limit(limit):
    """
    fix limit integer from user

    Args:
        limit: limit integer - default 10

    Returns:
        limit integer or 10
    """
    if limit:
        try:
            if int(limit) > 10000:
                return 10000
            return int(limit)
        except Exception:
            pass
    return 10