Skip to content

Commit e0829f9

Browse files
committed
Code cleanup
1 parent 3141d29 commit e0829f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

redis/asyncio/connection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import copy
33
import enum
44
import inspect
5-
import io
65
import os
76
import socket
87
import ssl
@@ -183,7 +182,7 @@ def parse_error(self, response: str) -> ResponseError:
183182
"""Parse an error response"""
184183
error_code = response.split(" ")[0]
185184
if error_code in self.EXCEPTION_CLASSES:
186-
response = response[len(error_code) + 1:]
185+
response = response[len(error_code) + 1 :]
187186
exception_class = self.EXCEPTION_CLASSES[error_code]
188187
if isinstance(exception_class, dict):
189188
exception_class = exception_class.get(response, ResponseError)

0 commit comments

Comments
 (0)