Skip to content

custom terms can't be loaded #46

@CB-HAL

Description

@CB-HAL

after update to easyDataverse v0.4.3 custom terms can't be loaded:

KeyError: 'license'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\spyder_kernels\customize\utils.py:209 in exec_encapsulate_locals
    exec_fun(compile(code_ast, filename, "exec"), globals, None)
  File d:\aussda\dataverse\easydataverse\addmissinguris_test_dv03.py:31
    dataset = dataverse.load_dataset('doi:10.0250/5AFGAP',download_files=False)
  File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\easyDataverse\dataverse.py:375 in load_dataset
    dataset.license = self.licenses[remote_ds.data.latestVersion.license.name]  # type: ignore
  File ~\AppData\Local\Programs\Python\Python312\Lib\site-packages\dotted_dict\__init__.py:37 in __getattr__
    raise AttributeError(attr)
AttributeError: license

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions