@@ -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
0 commit comments