diff --git a/pyasic/miners/backends/braiins_os.py b/pyasic/miners/backends/braiins_os.py index 18439622..b1ff85b7 100644 --- a/pyasic/miners/backends/braiins_os.py +++ b/pyasic/miners/backends/braiins_os.py @@ -334,6 +334,8 @@ async def _get_fw_ver(self, web_bos_info: dict = None) -> Optional[str]: async def _get_hostname(self) -> Union[str, None]: try: hostname = (await self.ssh.get_hostname()).strip() + except AttributeError: + return None except Exception as e: logging.error(f"{self} - Getting hostname failed: {e}") return None