diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9ca25426b..0c6575e1a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: # stages: [push] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.5.1" + rev: "v1.7.0" hooks: - id: mypy exclude: build_helpers diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 7638dcef1..603c161cf 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -1954,7 +1954,7 @@ class Exchange: results = await asyncio.gather(*input_coro, return_exceptions=True) for res in results: - if isinstance(res, Exception): + if isinstance(res, BaseException): logger.warning(f"Async code raised an exception: {repr(res)}") if raise_: raise diff --git a/requirements-dev.txt b/requirements-dev.txt index 8b4d36259..4bda09e2d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -8,7 +8,7 @@ coveralls==3.3.1 ruff==0.1.5 -mypy==1.6.1 +mypy==1.7.0 pre-commit==3.5.0 pytest==7.4.3 pytest-asyncio==0.21.1