Agent: Change exception handling and log message in ControlClient.get_pba_file()

This commit is contained in:
Shreya Malviya 2022-09-19 18:46:34 +05:30 committed by Mike Salvatore
parent d07760fe60
commit 365376a190
1 changed files with 2 additions and 2 deletions

View File

@ -84,5 +84,5 @@ class ControlClient:
def get_pba_file(self, filename):
try:
HTTPIslandAPIClient.get_pba_file(self.server_address, filename)
except requests.exceptions.RequestException:
return False
except Exception as exc:
logger.warning(f"Error connecting to control server {self.server_address}: {exc}")