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 @@ -610,9 +610,9 @@ def send_packed_command(self, command):
610
610
errmsg = e .args [1 ]
611
611
raise ConnectionError ("Error %s while writing to socket. %s." %
612
612
(errno , errmsg ))
613
- except Exception as e :
613
+ except : # noqa: E722
614
614
self .disconnect ()
615
- raise e
615
+ raise
616
616
617
617
def send_command (self , * args ):
618
618
"Pack and send a command to the Redis server"
@@ -631,9 +631,9 @@ def read_response(self):
631
631
"Read the response from a previously sent command"
632
632
try :
633
633
response = self ._parser .read_response ()
634
- except Exception as e :
634
+ except : # noqa: E722
635
635
self .disconnect ()
636
- raise e
636
+ raise
637
637
if isinstance (response , ResponseError ):
638
638
raise response
639
639
return response
You can’t perform that action at this time.
0 commit comments