bug: fix unneeded error handling when getting hostname fails.

This commit is contained in:
b-rowan
2024-01-22 19:40:07 -07:00
parent 1c5c39fa97
commit e2b0a76e67

View File

@@ -334,6 +334,8 @@ class BOSMiner(BaseMiner):
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