Ouranosinc / PAVICS-DataCatalog

DataCatalog server for the PAVICS project
2 stars 2 forks source link

Assumed Thredds permission rights results in key error #44

Open fmigneault opened 6 years ago

fmigneault commented 6 years ago

When Thredds read permission is not given but execute is permitted for Catalog, the returned services doesn't have the 'thredds' key. Check required for key existence, return an empty list if not.

Process error: wps_pavicsearch.py._handler Line 238 Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pavics_datacatalog-0.6.7-py2.7.egg/pavics_datacatalog/wps_processes/wps_pavicsearch.py", line 220, in _handler
    self.magpie_host, self.magpie_thredds_servers, token)
  File "/usr/local/lib/python2.7/dist-packages/pavics_datacatalog-0.6.7-py2.7.egg/pavics_datacatalog/magpie_utils.py", line 19, in __init__
    for key, service in services['services']['thredds'].items():
KeyError: 'thredds'