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

log out catalog query code and message

parent 2e35e622
Loading
Loading
Loading
Loading
+16 −17
Original line number Diff line number Diff line
@@ -740,7 +740,6 @@ class CsstMsDataManager:
        https://gea.esac.esa.int/archive/documentation/GDR3/Gaia_archive/chap_datamodel/
        sec_dm_main_source_catalogue/ssec_dm_gaia_source.html
        """
        try:
        cat = self.dfs_CatApi.catalog_query(
            catalog_name="gaia3",
            ra=ra,
@@ -752,11 +751,11 @@ class CsstMsDataManager:
            obstime=obstime,
            limit=limit
        )
            tbl = self.dfs_CatApi.to_table(cat)
            return tbl
        except:
            print("Error occurred during the query!")
            return None
        self.logger_ppl.info(f"Results from DFS CATAPI: code = {cat['code']}, message = {cat['message']}")
        if cat["code"] == 0:
            return self.dfs_CatApi.to_table(cat)
        else:
            raise ValueError("Bad results!")

    def dfs_l1_push(self):
        """ Push MBI/SLS L1 data to DFS. """