def get_activity_version(activity_type=None, activity_list=None):
    """Get the version of the activity.

    Args:
        activity_type (unicode): the type of the activity to retrieve the version of.
        activity_list (list): the list of activities
    Returns:
        the version number of the matching activity.
    """
    try:
        for activity in activity_list:
            if activity.get('name') == activity_type:
                return activity.get('version')
    except AttributeError:
        raise AttributeError('Activity is not a dict')
