diff --git a/monkey/infection_monkey/control.py b/monkey/infection_monkey/control.py index 2bb5e324f..56db8a652 100644 --- a/monkey/infection_monkey/control.py +++ b/monkey/infection_monkey/control.py @@ -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}")