Compare commits
No commits in common. "aefb0dc2ab6ab805044bb3189b889a89206ca228" and "8e70ce3c268f0dce66f4eb3d2535988c6d6479a1" have entirely different histories.
aefb0dc2ab
...
8e70ce3c26
@ -137,10 +137,10 @@ class InvoiceNinjaClient(object):
|
|||||||
bool
|
bool
|
||||||
True if the server response is OK, False otherwise.
|
True if the server response is OK, False otherwise.
|
||||||
"""
|
"""
|
||||||
self._log_debug(f'Pinging {self.base_url}/ping with headers {self.headers}')
|
logger.debug(f'Pinging {self.base_url}/ping with headers {self.headers}')
|
||||||
server_response = requests.get(url=f'{self.base_url}/ping',
|
server_response = requests.get(url=f'{self.base_url}/ping',
|
||||||
headers=self.headers)
|
headers=self.headers)
|
||||||
self._log_debug(f'Server response: {server_response.status_code}, {server_response.text}')
|
logger.debug(f'Server response: {server_response.status_code}, {server_response.text}')
|
||||||
|
|
||||||
return server_response.ok
|
return server_response.ok
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user