remove unused exception instance variables
This commit is contained in:

committed by
David Arthur

parent
7ac75c575c
commit
11f22fb3d7
@@ -299,7 +299,7 @@ class SimpleConsumer(Consumer):
|
|||||||
while count > 0:
|
while count > 0:
|
||||||
try:
|
try:
|
||||||
messages.append(next(iterator))
|
messages.append(next(iterator))
|
||||||
except StopIteration as exp:
|
except StopIteration:
|
||||||
break
|
break
|
||||||
count -= 1
|
count -= 1
|
||||||
|
|
||||||
|
@@ -112,7 +112,7 @@ class Producer(object):
|
|||||||
try:
|
try:
|
||||||
self.client.send_produce_request(reqs, acks=self.req_acks,
|
self.client.send_produce_request(reqs, acks=self.req_acks,
|
||||||
timeout=self.ack_timeout)
|
timeout=self.ack_timeout)
|
||||||
except Exception as exp:
|
except Exception:
|
||||||
log.error("Error sending message", exc_info=sys.exc_info())
|
log.error("Error sending message", exc_info=sys.exc_info())
|
||||||
|
|
||||||
def send_messages(self, partition, *msg):
|
def send_messages(self, partition, *msg):
|
||||||
|
Reference in New Issue
Block a user