Small changes

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2025-02-11 10:28:20 +01:00
parent 54986ef831
commit 40918029e7

View File

@ -161,7 +161,7 @@ class BTTether(plugins.Plugin):
logging.error("[BT-Tether] Phone name not provided") logging.error("[BT-Tether] Phone name not provided")
return return
if not ("mac" in self.options and re.match(MAC_PTTRN, self.options["mac"])): if not ("mac" in self.options and re.match(MAC_PTTRN, self.options["mac"])):
logging.error("[BT-Tether] Error with mac adresse") logging.error("[BT-Tether] Error with mac address")
return return
if not ("phone" in self.options and self.options["phone"].lower() in ["android", "ios"]): if not ("phone" in self.options and self.options["phone"].lower() in ["android", "ios"]):
@ -274,7 +274,7 @@ class BTTether(plugins.Plugin):
bluetooth = "Error while checking bluetoothctl" bluetooth = "Error while checking bluetoothctl"
try: try:
device =self.nmcli(["-w", "0","device", "show", self.mac]) device = self.nmcli(["-w", "0","device", "show", self.mac])
device = device.stdout.replace('\n', '<br>') device = device.stdout.replace('\n', '<br>')
except Exception as e: except Exception as e:
device = "Error while checking nmcli device" device = "Error while checking nmcli device"