Skip to content

dataset.get_files('latest') fails #34

Description

@tomck

Using an existing dataset with several files in it, I get an error.

Python 2.7.9 (default, Jun 27 2016, 20:10:46)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from dataverse import Connection
>>> host = 'hostname.example.com'
>>> token = 'token-code-'
>>> connection = Connection(host, token)
>>> dataverse = connection.get_dataverse('test')
>>> dataset = dataverse.get_dataset_by_doi('DOI:10.5072/FK2/ZDNXKZ')
>>> files = dataset.get_files('latest')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'get_files'

Not sure why. Happened on DV 4.3.1 and 4.4.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions