def get_int_input(msg=""):
    """
    Helper function to query for integer input from the user.

    Returns None if user inputs incorrect value.
    """
    try:
        return int(input(msg))
    except ValueError:
        return None