Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Commit d48393f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8cd5894 commit d48393f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pyasic/miners/factory.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,8 +850,9 @@ async def _get_miner_web(self, ip: str) -> MinerTypes | None:
850850

851851
text, resp = await concurrent_get_first_result(
852852
tasks,
853-
lambda x: x[0] is not None
854-
and self._parse_web_type(x[0], x[1]) is not None,
853+
lambda x: (
854+
x[0] is not None and self._parse_web_type(x[0], x[1]) is not None
855+
),
855856
)
856857
if text is not None:
857858
mtype = self._parse_web_type(text, resp)

0 commit comments

Comments
 (0)