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