aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-29 00:07:14 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-29 00:07:14 -0800
commitd95fa771f5c9a75dece2038ee50619a53f9c43f7 (patch)
tree5126a6b0163abc748c0d3656aae73ad684fe7a80 /python/fatcat_web
parent0f7fb8806c1a39aa54d0cd051aa48478c1b1c070 (diff)
downloadfatcat-d95fa771f5c9a75dece2038ee50619a53f9c43f7.tar.gz
fatcat-d95fa771f5c9a75dece2038ee50619a53f9c43f7.zip
check request status codes idiomatically
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/search.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/fatcat_web/search.py b/python/fatcat_web/search.py
index 471e522a..5cebfde4 100644
--- a/python/fatcat_web/search.py
+++ b/python/fatcat_web/search.py
@@ -36,6 +36,7 @@ def do_search(q, limit=50, fulltext_only=True):
(app.config['ELASTICSEARCH_BACKEND'], app.config['ELASTICSEARCH_INDEX']),
json=search_request)
+ #rv.raise_for_status()
if resp.status_code != 200:
print("elasticsearch non-200 status code: " + str(resp.status_code))
print(resp.content)