File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
scan_explorer_service/views Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,6 @@ def article_extra(bibcode: str):
3131 response = requests .get (ads_search_service , params , headers = headers ).json ()
3232 current_app .logger .debug (f'Response: { response } ' )
3333
34- if response .status_code == 429 :
35- current_app .logger .error (f'Rate limit exceeded' )
36- return jsonify (message = 'Rate limit exceeded' , error = response ), 429
37-
3834 docs = response .get ('response' ).get ('docs' )
3935 current_app .logger .debug (f'Docs: { docs } ' )
4036 if docs :
@@ -46,8 +42,7 @@ def article_extra(bibcode: str):
4642 except Exception as e :
4743 current_app .logger .error (f'500 error: { e } ' )
4844 return jsonify (message = 'Failed to retrieve external ADS article metadata' ), 500
49-
50- current_app .logger .debug (f'Empty response block' )
45+
5146 return {}
5247
5348@advertise (scopes = ['api' ], rate_limit = [300 , 3600 * 24 ])
You can’t perform that action at this time.
0 commit comments