kopia lustrzana https://github.com/projecthorus/chasemapper
Bring back Python 3.5 support. (y tho...)
rodzic
15bb7d70c0
commit
08b827ce37
|
@ -86,7 +86,7 @@ class UDPListener(object):
|
||||||
def handle_udp_packet(self, packet):
|
def handle_udp_packet(self, packet):
|
||||||
""" Process a received UDP packet """
|
""" Process a received UDP packet """
|
||||||
try:
|
try:
|
||||||
packet_dict = json.loads(packet)
|
packet_dict = json.loads(packet.decode())
|
||||||
|
|
||||||
if self.callback is not None:
|
if self.callback is not None:
|
||||||
self.callback(packet_dict)
|
self.callback(packet_dict)
|
||||||
|
|
Ładowanie…
Reference in New Issue