Commit c308a4d4 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

log out catalog query code and message

parent 2e35e622
...@@ -740,7 +740,6 @@ class CsstMsDataManager: ...@@ -740,7 +740,6 @@ class CsstMsDataManager:
https://gea.esac.esa.int/archive/documentation/GDR3/Gaia_archive/chap_datamodel/ https://gea.esac.esa.int/archive/documentation/GDR3/Gaia_archive/chap_datamodel/
sec_dm_main_source_catalogue/ssec_dm_gaia_source.html sec_dm_main_source_catalogue/ssec_dm_gaia_source.html
""" """
try:
cat = self.dfs_CatApi.catalog_query( cat = self.dfs_CatApi.catalog_query(
catalog_name="gaia3", catalog_name="gaia3",
ra=ra, ra=ra,
...@@ -752,11 +751,11 @@ class CsstMsDataManager: ...@@ -752,11 +751,11 @@ class CsstMsDataManager:
obstime=obstime, obstime=obstime,
limit=limit limit=limit
) )
tbl = self.dfs_CatApi.to_table(cat) self.logger_ppl.info(f"Results from DFS CATAPI: code = {cat['code']}, message = {cat['message']}")
return tbl if cat["code"] == 0:
except: return self.dfs_CatApi.to_table(cat)
print("Error occurred during the query!") else:
return None raise ValueError("Bad results!")
def dfs_l1_push(self): def dfs_l1_push(self):
""" Push MBI/SLS L1 data to DFS. """ """ Push MBI/SLS L1 data to DFS. """
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment