From 256b4cf0d248b86f33c2f7bc6b5db2d7188e6a7a Mon Sep 17 00:00:00 2001 From: Jeovane Santos Date: Sun, 19 Apr 2020 16:08:22 -0300 Subject: [PATCH] Update lglaf.py --- lglaf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lglaf.py b/lglaf.py index f189c62..f66e647 100755 --- a/lglaf.py +++ b/lglaf.py @@ -396,7 +396,7 @@ def detect_serial_path(): name, value, value_type = winreg.EnumValue(key, i) # match both \Device\LGANDNETDIAG1 and \Device\LGVZANDNETDIAG1 name = name.upper() - if name.startswith(r'\DEVICE\LG') and (name.endswith('G1') or name.endwith('G2')): + if name.startswith(r'\DEVICE\LG') and (name.endswith('G1') or name.endswith('G2')): return value except OSError: pass return None