Skip to content

Commit 2425d04

Browse files
committed
- Final pre-merge corrections
1 parent 5069b67 commit 2425d04

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGES.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ mpc
1212
^^^
1313

1414
- Parse star catalog information when querying observations database [#2957]
15-
- Parse ephemeris with sky motion with three digit precision [#3019]
16-
- Raise NoResultWarining when empty ephemeris reponse is returned [#3019]
15+
- Parse ephemeris with sky motion with three digit precision [#3026]
16+
- Raise EmptyResponseError when empty ephemeris reponse is returned [#3026]
1717

1818
linelists.cdms
1919
^^^^^^^^^^^^^^

astroquery/mpc/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ def _parse_result(self, result, **kwargs):
10621062
# raise EmptyResponseError if no ephemeris lines are found in the query response
10631063
try:
10641064
i = text_table.index('\n', text_table.index('h m s')) + 1
1065-
except ValueError as e:
1065+
except ValueError:
10661066
raise EmptyResponseError(content)
10671067
columns = text_table[:i]
10681068
data_start = columns.count('\n') - 1
@@ -1071,7 +1071,7 @@ def _parse_result(self, result, **kwargs):
10711071
# raise EmptyResponseError if no ephemeris lines are found in the query response
10721072
try:
10731073
i = text_table.index('\n', text_table.index('JD_TT')) + 1
1074-
except ValueError as e:
1074+
except ValueError:
10751075
raise EmptyResponseError(content)
10761076
columns = text_table[:i]
10771077
data_start = columns.count('\n') - 1

astroquery/mpc/tests/test_mpc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
from astropy.coordinates import EarthLocation, Angle
6565
from astropy.time import Time
6666

67-
from ...exceptions import EmptyResponseError, InvalidQueryError, NoResultsWarning
67+
from ...exceptions import EmptyResponseError, InvalidQueryError
6868
from ... import mpc
6969
from astroquery.utils.mocks import MockResponse
7070
from requests import Request

0 commit comments

Comments
 (0)