From 814c72052f7664f3bf9dbd56471fcdfa3c1d2f42 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 7 Jun 2023 21:51:40 +0200 Subject: [PATCH] ` pre-commit` autoupdate (#3747) Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com> --- .pre-commit-config.yaml | 6 +++--- telegram/request/_baserequest.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3ba8b0e00..73c5fdff4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: - aiolimiter~=1.1.0 - . # this basically does `pip install -e .` - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.2.0 + rev: v1.3.0 hooks: - id: mypy name: mypy-ptb @@ -62,7 +62,7 @@ repos: - cachetools~=5.3.1 - . # this basically does `pip install -e .` - repo: https://github.com/asottile/pyupgrade - rev: v3.3.2 + rev: v3.4.0 hooks: - id: pyupgrade files: ^(telegram|examples|tests|docs)/.*\.py$ @@ -77,7 +77,7 @@ repos: - --diff - --check - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: 'v0.0.263' + rev: 'v0.0.270' hooks: - id: ruff name: ruff diff --git a/telegram/request/_baserequest.py b/telegram/request/_baserequest.py index 85a10bc7e..53db6c7fa 100644 --- a/telegram/request/_baserequest.py +++ b/telegram/request/_baserequest.py @@ -290,7 +290,7 @@ class BaseRequest( except TelegramError as exc: raise exc except Exception as exc: - raise NetworkError(f"Unknown error in HTTP implementation: {repr(exc)}") from exc + raise NetworkError(f"Unknown error in HTTP implementation: {exc!r}") from exc if HTTPStatus.OK <= code <= 299: # 200-299 range are HTTP success statuses