Skip to content

Commit 29dcd3d

Browse files
committed
whitespace
1 parent b18c997 commit 29dcd3d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

astroquery/linelists/cdms/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def _parse_result(self, response, *, verbose=False):
301301
for key in fix_keys:
302302
if not np.issubdtype(result[key].dtype, np.integer):
303303
intcol = np.array(list(map(parse_letternumber, result[key])),
304-
dtype=int)
304+
dtype=int)
305305
result[key] = intcol
306306

307307
# if there is a crash at this step, something went wrong with the query
@@ -316,8 +316,8 @@ def _parse_result(self, response, *, verbose=False):
316316
except ValueError as ex:
317317
# Give users a more helpful exception when parsing fails
318318
new_message = ("Failed to parse CDMS response. This may be caused by a malformed search return. "
319-
"You can check this by running `CDMS.get_molecule('<id>')` instead; if it works, the "
320-
"problem is caused by the CDMS search interface and cannot be worked around.")
319+
"You can check this by running `CDMS.get_molecule('<id>')` instead; if it works, the "
320+
"problem is caused by the CDMS search interface and cannot be worked around.")
321321
raise ValueError(new_message) from ex
322322

323323
return result
@@ -445,7 +445,7 @@ def get_molecule(self, molecule_id, *, cache=True, return_response=False):
445445
response.raise_for_status()
446446

447447
if 'Zero lines were found' in response.text:
448-
raise EmptyResponseError(f"Response was empty; message was '{text}'.")
448+
raise EmptyResponseError(f"Response was empty; message was '{response.text}'.")
449449

450450
result = self._parse_cat(response.text)
451451

astroquery/linelists/cdms/tests/test_cdms_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def test_h2nc():
9898
tbl = CDMS.query_lines(min_frequency=139.3 * u.GHz,
9999
max_frequency=141.5 * u.GHz,
100100
molecule='028528 H2NC')
101-
101+
102102
# these are the results that SHOULD be return if it actually worked
103103
assert isinstance(tbl, Table)
104104
assert len(tbl) >= 1

0 commit comments

Comments
 (0)