处理hdc设备编码兼容问题

Signed-off-by: deveco_xdevice <liguangjie1@huawei.com>
This commit is contained in:
deveco_xdevice 2024-11-05 20:03:20 +08:00
parent 69969b4ac8
commit 06f3661e20

View File

@ -1001,7 +1001,7 @@ class HdcHelper:
return str(reply, encoding=encoding)
except (ValueError, TypeError) as _:
continue
return encoding
return ""
@staticmethod
def socket(host=None, port=None, timeout=None):