Skip to content

Commit ce5c491

Browse files
committed
fix: 🐛 failed response labelled unknown incorrectly
1 parent 134d381 commit ce5c491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_endpoint(self, _endpoint, _endpoint_info):
140140
self._uptime_msg.append(_endpoint + ": " + type(exception).__name__)
141141
return 'fail'
142142
else:
143-
if response:
143+
if isinstance(response, requests.models.Response):
144144
status = endpoint.check_response_status(response)
145145
cors = endpoint.check_cors_status(response)
146146

0 commit comments

Comments
 (0)