We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d946271 commit eed6d89Copy full SHA for eed6d89
astroquery/alma/core.py
@@ -646,9 +646,11 @@ def is_proprietary(self, uid):
646
query = "select distinct data_rights from ivoa.obscore where " \
647
"obs_id='{}'".format(uid)
648
result = self.query_tap(query)
649
- if not result or len(result.table) == 0:
+ if result:
650
+ tableresult = result.to_table()
651
+ if not result or len(tableresult) == 0:
652
raise AttributeError('{} not found'.format(uid))
- if len(result.table) == 1 and result.table[0][0] == 'Public':
653
+ if len(tableresult) == 1 and tableresult[0][0] == 'Public':
654
return False
655
return True
656
0 commit comments