Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

UDP line protocol sending fails due to an uninitialized variable #398

Merged
merged 3 commits into from
Apr 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion influxdb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ def send_packet(self, packet, protocol='json'):
if protocol == 'json':
data = make_lines(packet).encode('utf-8')
elif protocol == 'line':
data = ('\n'.join(data) + '\n').encode('utf-8')
data = ('\n'.join(packet) + '\n').encode('utf-8')
self.udp_socket.sendto(data, (self._host, self.udp_port))


Expand Down