From f6cdb7343b388b5de9e32f817beb12cb30b3afcc Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 14 Feb 2021 13:13:21 +0800 Subject: [PATCH] bugfix --- kivyblocks/blocksapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kivyblocks/blocksapp.py b/kivyblocks/blocksapp.py index 5373caf..e1a0c9c 100644 --- a/kivyblocks/blocksapp.py +++ b/kivyblocks/blocksapp.py @@ -123,8 +123,8 @@ class BlocksApp(App): device_id = plyer.uniqueid.id except: pass - if isinstance(device,bytes): - device_id = device.decode('utf-8') + if isinstance(device_id,bytes): + device_id = device_id.decode('utf-8') d = { 'device_id': device_id