Skip to content

Commit 7ff131c

Browse files
Check the 2nd element is not digit for Sesame (#780)
1 parent 6d6b01e commit 7ff131c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/parse.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,10 @@ def parse_query(string, timeout=None):
303303

304304
break
305305

306-
if "ra" not in query["params"] and query["object"][0].isalpha():
306+
# Note: for query["object"], use element 1 and not 0
307+
# to enable catalog name starting with a digit, like
308+
# 3FHL or 4LAC...
309+
if "ra" not in query["params"] and query["object"][1].isalpha():
307310
# Simbad
308311
res = call_resolver(query["object"], "simbad", timeout=timeout)
309312
if res:

0 commit comments

Comments
 (0)