File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -609,9 +609,9 @@ def send_packed_command(self, command):
609
609
errmsg = e .args [1 ]
610
610
raise ConnectionError ("Error %s while writing to socket. %s." %
611
611
(errno , errmsg ))
612
- except Exception as e :
612
+ except : # noqa: E722
613
613
self .disconnect ()
614
- raise e
614
+ raise
615
615
616
616
def send_command (self , * args ):
617
617
"Pack and send a command to the Redis server"
@@ -630,9 +630,9 @@ def read_response(self):
630
630
"Read the response from a previously sent command"
631
631
try :
632
632
response = self ._parser .read_response ()
633
- except Exception as e :
633
+ except : # noqa: E722
634
634
self .disconnect ()
635
- raise e
635
+ raise
636
636
if isinstance (response , ResponseError ):
637
637
raise response
638
638
return response
You can’t perform that action at this time.
0 commit comments