Numbers are not functions
This commit is contained in:
parent
f5f5b65180
commit
ede0c8561b
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class HttpChecker:
|
||||||
self.status_messages[status_code]) + append_messages.get(str(status_code), '')
|
self.status_messages[status_code]) + append_messages.get(str(status_code), '')
|
||||||
|
|
||||||
def get_status(self):
|
def get_status(self):
|
||||||
return requests.get(self.url, headers=self.headers).status_code()
|
return requests.get(self.url, headers=self.headers).status_code
|
||||||
|
|
||||||
def get_return_codes(self):
|
def get_return_codes(self):
|
||||||
return (self.status_messages)
|
return (self.status_messages)
|
||||||
|
|
Loading…
Reference in a new issue