mirror of
https://github.com/status-im/cabot.git
synced 2025-02-24 10:28:06 +00:00
Catch other errors in httpcheck Fixes #13
This commit is contained in:
parent
cd587b785c
commit
7c11f79eef
@ -477,8 +477,11 @@ class HttpStatusCheck(StatusCheck):
|
||||
verify=True,
|
||||
auth=auth
|
||||
)
|
||||
except requests.RequestException, exc:
|
||||
result.error = 'Request error occurred: %s' % (exc,)
|
||||
except requests.RequestException, e:
|
||||
result.error = 'Request error occurred: %s' % (e,)
|
||||
result.succeeded = False
|
||||
except Exception, e:
|
||||
result.error = 'Error in performing check: %s' % (e,)
|
||||
result.succeeded = False
|
||||
else:
|
||||
if self.status_code and resp.status_code != int(self.status_code):
|
||||
|
Loading…
x
Reference in New Issue
Block a user