@classmethod
def load(cls, yaml_file: BufferedReader):
    try:
        y = cls.yaml.load(yaml_file)
    except DuplicateKeyError as err:
        logging.error(_clean_duplicate_key_message(str(err)))
        raise ReckonerConfigException('Duplicate key found while loading your course YAML, please remove the duplicate key shown above.')
    except Exception as err:
        logging.error('Unexpected error when parsing yaml. See debug for more details.')
        logging.debug(err)
        raise err
    return y
@classmethod
def load(cls, yaml_file: BufferedReader):
    try:
        y = cls.yaml.load(yaml_file)
    except DuplicateKeyError as err:
        logging.error(_clean_duplicate_key_message(str(err)))
        raise ReckonerConfigException('Duplicate key found while loading your course YAML, please remove the duplicate key shown above.')
    except Exception as err:
        logging.error('Unexpected error when parsing yaml. See debug for more details.')
        logging.debug(err)
        raise err
    return y