Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:
- generate-docs
repos:
- repo: https://github.com/python-poetry/poetry
rev: 2.2.1
rev: 2.3.2
hooks:
- id: poetry-check
- id: poetry-lock
Expand All @@ -23,7 +23,7 @@ repos:
exclude: ^mkdocs\.yml$
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.2
rev: v0.15.1
hooks:
- id: ruff-check
args: [--fix]
Expand Down
5 changes: 3 additions & 2 deletions pyasic/miners/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,9 @@ async def _get_miner_web(self, ip: str) -> MinerTypes | None:

text, resp = await concurrent_get_first_result(
tasks,
lambda x: x[0] is not None
and self._parse_web_type(x[0], x[1]) is not None,
lambda x: (
x[0] is not None and self._parse_web_type(x[0], x[1]) is not None
),
)
if text is not None:
mtype = self._parse_web_type(text, resp)
Expand Down