Skip to content

Commit 342a727

Browse files
mkelleybsipocz
authored andcommitted
Update MPC error message for observations lookup without data.
An object without observations suggests a problem at the MPC.
1 parent ad2f110 commit 342a727

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

astroquery/mpc/core.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,11 @@ def _parse_result(self, result, **kwargs):
11841184

11851185
if len(src) == 0:
11861186
raise RuntimeError(('No data queried. Are the target '
1187-
'identifiers correct?'))
1187+
'identifiers correct? Is the MPC '
1188+
'database search working for your '
1189+
'object? The service is hosted at '
1190+
'https://www.minorplanetcenter.net/'
1191+
'search_db'))
11881192

11891193
# return raw response if requested
11901194
if self.get_raw_response:

0 commit comments

Comments
 (0)