Skip to content

Commit eed6d89

Browse files
committed
fix more of the same issue
1 parent d946271 commit eed6d89

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

astroquery/alma/core.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,11 @@ def is_proprietary(self, uid):
646646
query = "select distinct data_rights from ivoa.obscore where " \
647647
"obs_id='{}'".format(uid)
648648
result = self.query_tap(query)
649-
if not result or len(result.table) == 0:
649+
if result:
650+
tableresult = result.to_table()
651+
if not result or len(tableresult) == 0:
650652
raise AttributeError('{} not found'.format(uid))
651-
if len(result.table) == 1 and result.table[0][0] == 'Public':
653+
if len(tableresult) == 1 and tableresult[0][0] == 'Public':
652654
return False
653655
return True
654656

0 commit comments

Comments
 (0)