Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Remove redundant TimeoutError class #1444

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/1443.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove the `builtins.TimeoutError` class from base classes of `aioredis.exceptions.TimeoutError` because it is causing an error due to its redundancy.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Martin <the-panda>
Maxim Dodonchuk
Michael Käufl
Mikhail Solomenik
Mohamed Farahat
Nickolai Novik
Oleg Abramov
Oleg Butuzov
Expand Down
3 changes: 1 addition & 2 deletions aioredis/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Core exceptions raised by the Redis client"""
import asyncio
import builtins


class RedisError(Exception):
Expand All @@ -11,7 +10,7 @@ class ConnectionError(RedisError):
pass


class TimeoutError(asyncio.TimeoutError, builtins.TimeoutError, RedisError):
class TimeoutError(asyncio.TimeoutError, RedisError):
pass


Expand Down