diff --git a/datalad_dataverse/dataset.py b/datalad_dataverse/dataset.py index 7fb8f52..323a01b 100644 --- a/datalad_dataverse/dataset.py +++ b/datalad_dataverse/dataset.py @@ -94,7 +94,7 @@ def __init__(self, api, dsid: str, root_path: str | None = None): # check if project with specified doi exists # TODO ask for ':latest' and cache? dv_ds = api.get_dataset(identifier=dsid) - if not dv_ds.ok: + if not dv_ds.status_code < 400: raise RuntimeError("Cannot find dataset") def get_fileid_from_path(