Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esg_listdatasets can error if datasets publication is interrupted #144

Open
sterlingbaldwin opened this issue Mar 12, 2019 · 0 comments
Open

Comments

@sterlingbaldwin
Copy link

If a dataset publication is interrupted part way, and a user runs esg_listdatasets, they can get the following error:

(esgf-pub) -bash-4.1$ esglist_datasets e3sm | grep E3SM.1_0.historical
/usr/local/conda/envs/esgf-pub/lib/python2.7/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
  """)
Traceback (most recent call last):
  File "/usr/local/conda/envs/esgf-pub/bin/esglist_datasets", line 143, in <module>
    main(sys.argv[1:])
  File "/usr/local/conda/envs/esgf-pub/bin/esglist_datasets", line 139, in main
    result, headers = queryDatasets(projectName, handler, Session, properties, select=selectList, listall=listAll)
  File "/usr/local/conda/envs/esgf-pub/lib/python2.7/site-packages/esgcet/query/query.py", line 312, in queryDatasets
    result = [(item, item.getLatestVersion()) for item in result1]
  File "/usr/local/conda/envs/esgf-pub/lib/python2.7/site-packages/esgcet/model/__init__.py", line 718, in getLatestVersion
    return self.versions[-1]
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant