Skip to content

Commit 07eacf3

Browse files
author
Roey Prat
committed
pycodestyle changes in benchmarking
1 parent 1f2eaf3 commit 07eacf3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

benchmarks/basic_operations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,5 +195,6 @@ def hmset(conn, num, pipeline_size, data_size):
195195
if pipeline_size > 1:
196196
conn.execute()
197197

198+
198199
if __name__ == '__main__':
199200
run()

benchmarks/command_packer_benchmark.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def send_packed_command(self, command):
2222
_errno, errmsg = e.args
2323
raise ConnectionError("Error %s while writing to socket. %s." %
2424
(_errno, errmsg))
25-
except:
25+
except Exception as e:
2626
self.disconnect()
27-
raise
27+
raise e
2828

2929
def pack_command(self, *args):
3030
"Pack a series of arguments into a value Redis command"
@@ -54,9 +54,9 @@ def send_packed_command(self, command):
5454
_errno, errmsg = e.args
5555
raise ConnectionError("Error %s while writing to socket. %s." %
5656
(_errno, errmsg))
57-
except:
57+
except Exception as e:
5858
self.disconnect()
59-
raise
59+
raise e
6060

6161
def pack_command(self, *args):
6262
output = []

0 commit comments

Comments
 (0)