Skip to content

Commit 11f22fb

Browse files
Vetoshkin Nikitamumrah
authored andcommitted
remove unused exception instance variables
1 parent 7ac75c5 commit 11f22fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kafka/consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def get_messages(self, count=1, block=True, timeout=0.1):
299299
while count > 0:
300300
try:
301301
messages.append(next(iterator))
302-
except StopIteration as exp:
302+
except StopIteration:
303303
break
304304
count -= 1
305305

kafka/producer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _send_upstream(self, queue):
112112
try:
113113
self.client.send_produce_request(reqs, acks=self.req_acks,
114114
timeout=self.ack_timeout)
115-
except Exception as exp:
115+
except Exception:
116116
log.error("Error sending message", exc_info=sys.exc_info())
117117

118118
def send_messages(self, partition, *msg):

0 commit comments

Comments
 (0)