def get_last_id(file_name):
    """Retrieve last status ID from a file"""
    try:
        with open(file_name) as f:
            last_id = int(f.read())
            return last_id
    except IOError:
        return 0