fix typo and stuff

This commit is contained in:
Laura Klünder 2018-12-28 22:34:33 +01:00
parent 45d1f3a99d
commit 6778b32fe8

View file

@ -37,7 +37,7 @@ class Command(BaseCommand):
s.connect((options['graphite'], options['graphite_port']))
message = '\n'.join(lines) + '\n' # all lines must end in a newline
print(message)
sock.sendall(message)
s.sendall(message.encode())
finally:
s.close()
else: