Skip to content

Commit

Permalink
Merge pull request #379 from TannerDalen/nndc_requests_patch
Browse files Browse the repository at this point in the history
Fix nndc._request()
  • Loading branch information
markbandstra authored Aug 10, 2023
2 parents 7c6e04c + a631d6e commit 03a3eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion becquerel/tools/nndc.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def _request(self):
with warnings.catch_warnings():
warnings.simplefilter("ignore", category=ResourceWarning)
resp = session.post(self._URL, data=self._data, stream=False)
if not resp.ok or resp.reason != "OK" or resp.status_code != 200:
if not resp.ok or resp.status_code != 200:
raise NNDCRequestError("Request failed: " + resp.reason)
for msg in [
"Your search was unsuccessful",
Expand Down

0 comments on commit 03a3eea

Please sign in to comment.