]> git.0d.be Git - django-panik-nonstop.git/commitdiff
soma: send ET.tostring() as is, it's already bytes
authorFrédéric Péters <fpeters@0d.be>
Mon, 6 Jan 2020 15:34:28 +0000 (16:34 +0100)
committerFrédéric Péters <fpeters@0d.be>
Mon, 6 Jan 2020 15:34:28 +0000 (16:34 +0100)
nonstop/utils.py

index 062837775ff262c1888ab702d18361fec33a41bd..ef0662e5b4e19aa536b03f77b18a4553e75d916d 100644 (file)
@@ -118,7 +118,7 @@ def add_diffusion(diffusion):
         s.sendall(b'106 - Switch to a New Palinsesto Request\n')
         if s.recv(1024) != b'100 - Ok\n':
             raise SomaException('failed to switch palinsesto')
-        s.sendall(ET.tostring(palinsesto_xml).encode('utf-8'))
+        s.sendall(ET.tostring(palinsesto_xml))
 
     # give it some time (...)
     time.sleep(3)