Better handling of EmptyReply exception, always bump 'last_checked' in the case of an error (#354)

* Better handling of EmptyReply exception, always bump 'last_checked' in the case of an error, adds test
This commit is contained in:
dgtlmoon
2022-01-05 14:13:30 +01:00
committed by GitHub
parent f166ab1e30
commit f87f7077a6
6 changed files with 69 additions and 13 deletions

View File

@@ -54,6 +54,13 @@ def live_server_setup(live_server):
resp.headers['Content-Type'] = 'application/json'
return resp
@live_server.app.route('/test-403')
def test_endpoint_403_error():
from flask import make_response
resp = make_response('', 403)
return resp
# Just return the headers in the request
@live_server.app.route('/test-headers')
def test_headers():