Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-dfs
csst-dfs-client
Commits
a0aa764c
Commit
a0aa764c
authored
Dec 08, 2025
by
Wei Shoulin
Browse files
fix(catalog): add validation for catalog_name parameter
parent
efa4a979
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_dfs_client/catalog.py
View file @
a0aa764c
...
...
@@ -38,6 +38,8 @@ def search(ra: float,
try
:
import
pandas
as
pd
if
not
catalog_name
:
return
Result
.
error
(
"catalog_name is required"
)
datas
=
request
.
post
(
'/api/catalog'
,
{
'ra'
:
ra
,
'dec'
:
dec
,
...
...
@@ -93,6 +95,8 @@ def describe_catalog(catalog_name: str) -> Result:
"""
try
:
import
pandas
as
pd
if
not
catalog_name
:
return
Result
.
error
(
"catalog_name is required"
)
datas
=
request
.
get
(
f
'/api/catalog/describe/
{
catalog_name
}
'
)
if
datas
and
isinstance
(
datas
,
Result
):
return
datas
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment