diff --git a/sdk/eventhub/azure-eventhub/azure/eventhub/_buffered_producer/_buffered_producer.py b/sdk/eventhub/azure-eventhub/azure/eventhub/_buffered_producer/_buffered_producer.py index f44204def090f..5c72f2f3cddca 100644 --- a/sdk/eventhub/azure-eventhub/azure/eventhub/_buffered_producer/_buffered_producer.py +++ b/sdk/eventhub/azure-eventhub/azure/eventhub/_buffered_producer/_buffered_producer.py @@ -85,7 +85,6 @@ def put_events(self, events, timeout_time=None): # Put single event or EventDataBatch into the queue. # This method would raise OperationTimeout if the queue does not have enough space for the input and # flush cannot finish in timeout. - try: new_events_len = len(events) except TypeError: