Skip to content

Commit a591760

Browse files
authored
Merge pull request influxdata#398 from h0bot/master
UDP line protocol sending fails due to an uninitialized variable
2 parents daf6a76 + 7e43bc6 commit a591760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

influxdb/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ def send_packet(self, packet, protocol='json'):
824824
if protocol == 'json':
825825
data = make_lines(packet).encode('utf-8')
826826
elif protocol == 'line':
827-
data = ('\n'.join(data) + '\n').encode('utf-8')
827+
data = ('\n'.join(packet) + '\n').encode('utf-8')
828828
self.udp_socket.sendto(data, (self._host, self.udp_port))
829829

830830

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy